ICacheFactory
Interface ICacheFactory
Tags
Table of Contents
- create() : ICache
- Get a distributed memory cache instance
- createDistributed() : ICache
- create a distributed cache instance
- createLocal() : ICache
- create a local cache instance
- createLocking() : IMemcache
- create a cache instance for storing locks
- isAvailable() : bool
- Check if any memory cache backend is available
- isLocalCacheAvailable() : bool
- Check if a local memory cache backend is available
Methods
create()
Get a distributed memory cache instance
public
create([string $prefix = '' ]) : ICache
All entries added trough the cache instance will be namespaced by $prefix to prevent collisions between apps
Parameters
- $prefix : string = ''
Tags
Return values
ICache —createDistributed()
create a distributed cache instance
public
createDistributed([string $prefix = '' ]) : ICache
Parameters
- $prefix : string = ''
Tags
Return values
ICache —createLocal()
create a local cache instance
public
createLocal([string $prefix = '' ]) : ICache
Parameters
- $prefix : string = ''
Tags
Return values
ICache —createLocking()
create a cache instance for storing locks
public
createLocking([string $prefix = '' ]) : IMemcache
Parameters
- $prefix : string = ''
Tags
Return values
IMemcache —isAvailable()
Check if any memory cache backend is available
public
isAvailable() : bool
Tags
Return values
bool —isLocalCacheAvailable()
Check if a local memory cache backend is available
public
isLocalCacheAvailable() : bool