Property | Type | Description | |
---|---|---|---|
$gcProbability | probability that the clean() routine is started | ||
$useDirectories | boolean |
Method | Description | |
---|---|---|
__construct ( $dir, Nette\Caching\Storages\IJournal $journal = NULL ) | ||
clean ( array $conditions ) : void | Removes items from the cache by conditions & garbage collector. | |
lock ( $key ) : void | Prevents item reading and writing. Lock is released by write() or remove(). | |
read ( $key ) : mixed | null | Read from cache. | |
remove ( $key ) : void | Removes item from the cache. | |
write ( $key, $data, array $dp ) : void | Writes item into the cache. |
Method | Description | |
---|---|---|
getCacheFile ( $key ) : string | Returns file name. | |
readData ( $meta ) : mixed | Reads cache data from disk and closes cache file handle. | |
readMetaAndLock ( $file, $lock ) : array | null | Reads cache data from disk. |
Method | Description | |
---|---|---|
delete ( $file, $handle = NULL ) : void | Deletes and closes file. | |
verify ( $meta ) : boolean | Verifies dependencies. |
public __construct ( $dir, Nette\Caching\Storages\IJournal $journal = NULL ) | ||
$journal | Nette\Caching\Storages\IJournal |
protected getCacheFile ( $key ) : string | ||
return | string |
protected readMetaAndLock ( $file, $lock ) : array | null | ||
return | array | null |
public static $gcProbability |