Class: cache

.'mcode-cache.js'~cache() → {cache}

cache Class to provide transparent data caching for MicroCODE applications.

Constructor

new cache() → {cache}

Creates or returns the singleton cache instance.
Source:
Returns:
the singleton cache instance.
Type
cache

Members

cacheErrors

Properties:
Name Type Description
cacheErrors object the frozen stable package error codes for operational branching.
Source:

cacheNamespace

Properties:
Name Type Description
cacheNamespace string the 'prefix' used to group our keys in the cache Server. This property switches to a new namespace, to be used for all subsequent cache operations as the default. The namespace must already exist in the cache servers 'namespace' list, see addNamespace().
Source:

cacheNamespaces

Properties:
Name Type Description
cacheNamespaces array returns an array containing all the namespaces defined in the cache server. The array contains objects with name, type (node or redis), enabled properties, and current statistics for each namespace.
Source:

cacheReady

Properties:
Name Type Description
cacheReady boolean whether the cache instance and configured Redis namespaces are ready.
Source:

cacheTTL

Properties:
Name Type Description
cacheTTL number the cache Time-To-Live property, in seconds.
Source:

redisMinimumVersion

Properties:
Name Type Description
redisMinimumVersion string the minimum supported Redis server version.
Source:

redisPassword

Properties:
Name Type Description
redisPassword string the Password to the Redis Server.
Source:

redisPort

Properties:
Name Type Description
redisPort string the PORT to the Redis Server.
Source:

redisStatus

Properties:
Name Type Description
redisStatus object the frozen stable Redis namespace status constants.
Source:

redisURL

Properties:
Name Type Description
redisURL string the URL to the Redis Server.
Source:

redisUser

Properties:
Name Type Description
redisUser string the User to the Redis Server.
Source: