function DrupalFileCache::__construct in File Cache 7
Construct DrupalFileCache for specified cache bin.
Parameters
$bin: Cache bin name.
File
- ./
filecache.inc, line 109 - DrupalFileCache class that implements DrupalCacheInterface.
Class
Code
function __construct($bin) {
$this->bin = $bin;
$this->directory = filecache_directory($bin) . '/' . get_cache_prefix($bin) . $bin;
$this->ok = $this
->check_filecache_directory();
$this
->truncate_if_needed();
}