프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_file | array | List of key to filename mappings. |
메소드 | 설명 | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
__destruct ( ) | Destructor. | |
clear ( ) | ||
exists ( $key, $lifetime ) | ||
expire ( $key ) | ||
get ( $key, $lifetime ) | ||
set ( $key, $data, $lifetime ) |
메소드 | 설명 | |
---|---|---|
_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. |
리턴 | array | Pathnames to cache files. |
protected _getGCFiles ( ) : array | ||
리턴 | array | Pathnames to GC indexes. |