Mobi_Mtld_DA_CacheProvider_ApcCacheProvider
    
            
            in package
            
        
    
            
            implements
                            Mobi_Mtld_DA_CacheProvider_CacheProviderInterface                    
    
    
        
            APC cache provider may be used by the DeviceApi and DeviceApiWeb to cache the detected properties. Using cache improves the performance by not doing unnecessary lookups in the data files.
Tags
Interfaces, Classes and Traits
- Mobi_Mtld_DA_CacheProvider_CacheProviderInterface
 - A cache provider such as APC or Memcache may be used by the DeviceApi and DeviceApiWeb to cache the detected properties. Using cache improves the performance by not doing unnecessary lookups in the data files. A valid cache provider must implement this interface to be usable by the APIs.
 
Table of Contents
- $cacheItemExpiry : mixed
 - __construct() : mixed
 - Construct a CacheProvider object.
 - clear() : bool
 - Clear the whole cache.
 - delete() : bool
 - Remove an item from the cache.
 - get() : mixed
 - Get a stored value form cache.
 - set() : bool
 - Store a value in cache.
 
Properties
$cacheItemExpiry
    private
        mixed
    $cacheItemExpiry
    
        
        
    
Methods
__construct()
Construct a CacheProvider object.
    public
                __construct([mixed $cacheItemExpiry = 86400 ]) : mixed
    
        Parameters
- $cacheItemExpiry : mixed = 86400
 
Return values
mixed —clear()
Clear the whole cache.
    public
                clear() : bool
    
    
    
        Return values
bool —true=cache cleared
delete()
Remove an item from the cache.
    public
                delete(mixed $key) : bool
    
        Parameters
- $key : mixed
 
Return values
bool —true=cache deleted
get()
Get a stored value form cache.
    public
                get(mixed $key) : mixed
    
        Parameters
- $key : mixed
 
Return values
mixed —the cached value or null if the key does not exist in cache
set()
Store a value in cache.
    public
                set(mixed $key, mixed $value) : bool
    
        Parameters
- $key : mixed
 - $value : mixed
 
Tags
Return values
bool —true=cache stored