Свойство | Type | Description | |
---|---|---|---|
$_file | array | List of key to filename mappings. |
Méthode | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
__destruct ( ) | Destructor. | |
clear ( ) | ||
exists ( $key, $lifetime ) | ||
expire ( $key ) | ||
get ( $key, $lifetime ) | ||
set ( $key, $data, $lifetime ) |
Méthode | Description | |
---|---|---|
_gc ( ) | Garbage collector. | |
_getCacheFiles ( string $start = null ) : array | Return a list of cache files. | |
_getGCFiles ( ) : array | Return a list of GC indexes. | |
_keyToFile ( string $key, string $create = false ) : string | Map a cache key to a unique filename. | |
_migrateGc ( ) | Migrates single GC indexes to per-directory indexes. |
public __construct ( array $params = [] ) | ||
$params | array | Optional parameters:
- dir: (string) The base directory to store the cache files in. DEFAULT: System default - no_gc: (boolean) If true, don't perform garbage collection. DEFAULT: false - prefix: (string) The filename prefix to use for the cache files. DEFAULT: 'cache_' - sub: (integer) If non-zero, the number of subdirectories to create to store the file (i.e. PHP's session.save_path). DEFAULT: 0 |
protected _getCacheFiles ( string $start = null ) : array | ||
$start | string | The directory to start searching. |
Résultat | array | Pathnames to cache files. |
protected _getGCFiles ( ) : array | ||
Résultat | array | Pathnames to GC indexes. |
protected _migrateGc ( ) |
protected array $_file | ||
Résultat | array |