BearFramework\App\Cache

Data cache

BearFramework\App\Cache {

    /* Methods */
    public mixed get ( string $key [, string $defaultValue = false ] )
    public boolean exists ( string $key )
    public void set ( string $key , mixed $value [, int $ttl = 0 ] )
    public void delete ( string $key )

}

Methods

BearFramework\App\Cache::delete - Deletes data fom the cache
BearFramework\App\Cache::exists - Returns information whether a key exists in the cache.
BearFramework\App\Cache::get - Return the saved data from the cache of the default value specified
BearFramework\App\Cache::set - Saves data in the cache