Class FileCache
A cache that persists using files.
<?php
use ICanBoogie\CLDR\FileCache;
$cache = new FileCache('/path/to/cached_repository');
-
ICanBoogie\CLDR\FileCache
implements
ICanBoogie\CLDR\Cache
Methods summary
public
|
|
public
|
#
exists( string $path )
Checks if a key exists in the cache.
Checks if a key exists in the cache.
Parameters
Implementation of
|
public
|
#
retrieve( string $path )
Retrieves the data specified by the key from the cache.
Retrieves the data specified by the key from the cache.
Parameters
Implementation of
|
public
|
#
store( string $path, mixed $data )
Stores the specified data in the cache, under the specified key.
Stores the specified data in the cache, under the specified key.
Parameters
- $path
string $key
- $data
mixed $data
Implementation of
|
Magic methods summary
Properties summary