function FileCache::__construct

8.0.x FileCache.php FileCache::__construct($bin)
7.x FileCache.php FileCache::__construct($bin)
master FileCache.php FileCache::__construct($bin)

Constructor.

Parameters

$bin: The cache bin for which the object is created.

Overrides CacheInterface::__construct

File

lib/Drush/Cache/FileCache.php, line 21
Definition of Drush\Cache\FileCache.

Namespace

Drush\Cache

Class

FileCache
Default cache implementation.

Code

function __construct($bin) {
  $this->bin = $bin;
  $this->directory = $this->cacheDirectory();
}