$directory
$directory : string
The directory in which to store the cache's files.
Implements a cache using files.
Files are locked to ensure, that concurrent calls to get and put do not corrupt the cache.
clear(integer $ttl)
Clears entries by deleting cache files.
integer | $ttl | Time-to-live of a file in seconds (based on its modification time) that, if not reached, keeps it from being deleted by this method |
getFilename(string $key) : string
Computes the filename for a specified key.
string | $key | The key |
The filename