Manager¶
create_cache_client(config, engine)
¶
Create a cache client of a provided type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
CacheConfig
|
Cache client configuration. |
required |
engine
|
CacheEngine
|
Cache engine to use. |
required |
Returns:
| Type | Description |
|---|---|
CacheMemcached | CacheRedis
|
CacheMemcached | CacheRedis: Cache client. |