CacheManager

CacheManager

Provides and manages the instance of ICache


Constructor

# new CacheManager()

This constructor for internal used only

Methods

# (async) getCache(cacheName, cacheConnectionOptions, clientCacheName, clientCacheConnectionOptions) → {Cache}

Returns an instance of Cache for this application.

Parameters:
Name Type Default Description
cacheName string

cachename used for getting cache instance

cacheConnectionOptions CacheConnectionOptions null

cache Connection Options for cache instance

clientCacheName string null

cachename used for getting client cache instance

clientCacheConnectionOptions string null

cache Connection Options for client cache instance

Returns:
Type
Cache

# getConfigPath() → {string}

set configuation path for cache

Returns:
Type
string

# getExceptionsEnabled() → {boolean}

indicates if the exceptions are enabled

Returns:
Type
boolean

# setConfigPath(path)

set configuation path for cache

Parameters:
Name Type Description
path string

path for cache configuation

# setExceptionsEnabled(value)

set value to true to enable exceptions,

Parameters:
Name Type Description
value boolean

indicates value for setExceptionsEnabled