ICacheFactory
                
            in
            
        
    
        
            Interface ICacheFactory
Tags
Table of Contents
Methods
- createDistributed() : ICache
 - create a distributed cache instance
 - createInMemory() : ICache
 - Create an in-memory 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
createDistributed()
create a distributed cache instance
    public
                    createDistributed([string $prefix = '' ]) : ICache
    Parameters
- $prefix : string = ''
 
Tags
Return values
ICachecreateInMemory()
Create an in-memory cache instance
    public
                    createInMemory([int $capacity = 512 ]) : ICache
    Useful for remembering values inside one process. Cache memory is cleared when the object is garbage-collected. Implementation may also expire keys earlier when the TTL is reached or too much memory is consumed.
Cache keys are local to the cache object. When building two in-memory caches, there is no data exchange between the instances.
Parameters
- $capacity : int = 512
 - 
                    
maximum number of cache keys
 
Tags
Return values
ICachecreateLocal()
create a local cache instance
    public
                    createLocal([string $prefix = '' ]) : ICache
    Parameters
- $prefix : string = ''
 
Tags
Return values
ICachecreateLocking()
create a cache instance for storing locks
    public
                    createLocking([string $prefix = '' ]) : IMemcache
    Parameters
- $prefix : string = ''
 
Tags
Return values
IMemcacheisAvailable()
Check if any memory cache backend is available
    public
                    isAvailable() : bool
    Tags
Return values
boolisLocalCacheAvailable()
Check if a local memory cache backend is available
    public
                    isLocalCacheAvailable() : bool