BearFramework\App\NullCacheDriver

A null cache driver. No data is stored and no errors are thrown.
BearFramework\App\NullCacheDriver implements BearFramework\App\ICacheDriver {

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

}
Implements
A cache driver interface.
Methods
public void clear ( void )
Deletes all values from the cache.
public void delete ( string $key )
Deletes a value from the cache.
public void deleteMultiple ( array $keys )
Deletes multiple values from the cache.
public mixed|null get ( string $key )
Retrieves a value from the cache.
public array getMultiple ( array $keys )
Retrieves multiple values from the cache.
public void set ( string $key , type $value [, int $ttl ] )
Stores a value in the cache.
public void setMultiple ( array $items [, int $ttl ] )
Stores multiple values in the cache.
Details
Location: ~/src/App/NullCacheDriver.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.