function FileCache::cacheDirectory

8.0.x FileCache.php FileCache::cacheDirectory($bin = NULL)
7.x FileCache.php FileCache::cacheDirectory($bin = NULL)
master FileCache.php FileCache::cacheDirectory($bin = NULL)

Returns the cache directory for the given bin.

Parameters

string $bin:

2 calls to FileCache::cacheDirectory()
FileCache::clear in lib/Drush/Cache/FileCache.php
Expire data from the cache. If called without arguments, expirable entries will be cleared from all known cache bins.
FileCache::__construct in lib/Drush/Cache/FileCache.php
Constructor.

File

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

Namespace

Drush\Cache

Class

FileCache
Default cache implementation.

Code

function cacheDirectory($bin = NULL) {
  $bin = $bin ? $bin : $this->bin;
  return drush_directory_cache($bin);
}