Class FileSystem
Class FileSystem Adapter for caching data.
-
Core\Modules\Cache\Adapters\FileSystem
implements
Core\Modules\Cache\Interfaces\Adapter
Methods summary
public
boolean
|
#
store( string $key, mixed $value, integer $expire = 0 )
Stores value by key.
Parameters
- $key
- Cache key.
- $value
- Cache value.
- $expire
- Expiration time, in seconds(optional).
Returns
boolean
Uses
Implementation of
|
public
mixed
|
#
fetch( string $key )
Fetches stored value by key.
Fetches stored value by key.
Parameters
Returns
mixed
Implementation of
|
public
boolean
|
#
exists( string $key )
Checks if a key-value pair exists.
Checks if a key-value pair exists.
Parameters
Returns
boolean
Implementation of
|
public
boolean
|
#
remove( string $key )
Removes a key-value pair.
Removes a key-value pair.
Parameters
Returns
boolean
Implementation of
|
private static
string
|
#
generateName( string $key )
Generates cache name.
Parameters
Returns
string
|
private static
string
|
|