BearFramework\App\ICacheDriver

A cache driver interface.
BearFramework\App\ICacheDriver {

    
/* Methods */
    
abstract public void clear void )
    abstract public 
void delete string $key )
    abstract public 
void deleteMultiple ( array $keys )
    abstract public 
mixed|null get string $key )
    abstract public array 
getMultiple ( array $keys )
    abstract public 
void set string $key type $value [, int $ttl ] )
    abstract public 
void setMultiple ( array $items [, int $ttl ] )

}
Methods
abstract public void clear ( void )
Deletes all values from the cache.
abstract public void delete ( string $key )
Deletes a value from the cache.
abstract public void deleteMultiple ( array $keys )
Deletes multiple values from the cache.
abstract public mixed|null get ( string $key )
Retrieves a value from the cache.
abstract public array getMultiple ( array $keys )
Retrieves multiple values from the cache.
abstract public void set ( string $key , type $value [, int $ttl ] )
Stores a value in the cache.
abstract public void setMultiple ( array $items [, int $ttl ] )
Stores multiple values in the cache.
Details
Location: ~/src/App/DataCacheDriver.php
The information on this page is created for version 1.1 of Bear Framework and may not be applicable for other versions of the framework.