Drush: Drush\Cache\FileCache Class Reference

  1. 7.x doxygen/html/classDrush_1_1Cache_1_1FileCache.html
  2. master doxygen/html/classDrush_1_1Cache_1_1FileCache.html
Inheritance diagram for Drush\Cache\FileCache:
Collaboration diagram for Drush\Cache\FileCache:

Public Member Functions

 __construct ($bin)
 cacheDirectory ($bin=NULL)
 get ($cid)
 getMultiple (&$cids)
 readFile ($filename)
 set ($cid, $data, $expire=DRUSH_CACHE_PERMANENT)
 writeFile ($filename, $cache)
 clear ($cid=NULL, $wildcard=FALSE)
 isEmpty ()

Public Attributes

const EXTENSION = '.cache'

Protected Member Functions

 getFilePath ($cid)

Protected Attributes

 $bin

Detailed Description

Default cache implementation.

This cache implementation uses plain text files containing serialized php to store cached data. Each cache bin corresponds to a directory by the same name.

Definition at line 17 of file FileCache.php.

Constructor & Destructor Documentation

Drush\Cache\FileCache::__construct (   $bin)

Constructor.

Parameters
$binThe cache bin for which the object is created.

Implements Drush\Cache\CacheInterface.

Definition at line 21 of file FileCache.php.

References Drush\Cache\FileCache\cacheDirectory().

Here is the call graph for this function:

Member Function Documentation

Drush\Cache\FileCache::cacheDirectory (   $bin = NULL)

Returns the cache directory for the given bin.

Parameters
string$bin

Definition at line 31 of file FileCache.php.

References drush_directory_cache().

Referenced by Drush\Cache\FileCache\__construct(), and Drush\Cache\FileCache\clear().

Here is the call graph for this function:

Here is the caller graph for this function:

Drush\Cache\FileCache::clear (   $cid = NULL,
  $wildcard = FALSE 
)

Expire data from the cache. If called without arguments, expirable entries will be cleared from all known cache bins.

Parameters
string$cidIf set, the cache ID to delete. Otherwise, all cache entries that can expire are deleted.
bool$wildcardIf set to TRUE, the $cid is treated as a substring to match rather than a complete ID. The match is a right hand match. If '*' is given as $cid, the bin $bin will be emptied.

Implements Drush\Cache\CacheInterface.

Definition at line 111 of file FileCache.php.

References Drush\Cache\FileCache\cacheDirectory(), drush_delete_dir(), drush_scan_directory(), and Drush\Cache\FileCache\getFilePath().

Here is the call graph for this function:

Drush\Cache\FileCache::get (   $cid)

Return data from the persistent cache.

Parameters
string$cidThe cache ID of the data to retrieve.
Returns
The cache or FALSE on failure.

Implements Drush\Cache\CacheInterface.

Definition at line 36 of file FileCache.php.

References Drush\Cache\FileCache\getMultiple().

Here is the call graph for this function:

Drush\Cache\FileCache::getFilePath (   $cid)
protected

Converts a cache id to a full path.

Parameters
$cidThe cache ID of the data to retrieve.
Returns
The full path to the cache file.

Definition at line 153 of file FileCache.php.

Referenced by Drush\Cache\FileCache\clear(), Drush\Cache\FileCache\getMultiple(), and Drush\Cache\FileCache\set().

Here is the caller graph for this function:

Drush\Cache\FileCache::getMultiple ( $cids)

Return data from the persistent cache when given an array of cache IDs.

Parameters
array$cidsAn array of cache IDs for the data to retrieve. This is passed by reference, and will have the IDs successfully returned from cache removed.
Returns
An array of the items successfully returned from cache indexed by cid.

Implements Drush\Cache\CacheInterface.

Definition at line 42 of file FileCache.php.

References Drush\Cache\FileCache\getFilePath(), and Drush\Cache\FileCache\readFile().

Referenced by Drush\Cache\FileCache\get().

Here is the call graph for this function:

Here is the caller graph for this function:

Drush\Cache\FileCache::isEmpty ( )

Check if a cache bin is empty.

A cache bin is considered empty if it does not contain any valid data for any cache ID.

Returns
TRUE if the cache bin specified is empty.

Implements Drush\Cache\CacheInterface.

Definition at line 139 of file FileCache.php.

References drush_scan_directory().

Here is the call graph for this function:

Drush\Cache\FileCache::readFile (   $filename)

Returns the contents of the given filename unserialized.

Parameters
string$filenameAbsolute path to filename to read contents from.

Reimplemented in Drush\Cache\JSONCache.

Definition at line 68 of file FileCache.php.

Referenced by Drush\Cache\FileCache\getMultiple().

Here is the caller graph for this function:

Drush\Cache\FileCache::set (   $cid,
  $data,
  $expire = DRUSH_CACHE_PERMANENT 
)

Store data in the persistent cache.

Parameters
string$cidThe cache ID of the data to store.
array$dataThe data to store in the cache.
$expireOne of the following values:
  • DRUSH_CACHE_PERMANENT: Indicates that the item should never be removed unless explicitly told to using _drush_cache_clear_all() with a cache ID.
  • DRUSH_CACHE_TEMPORARY: Indicates that the item should be removed at the next general cache wipe.
  • A Unix timestamp: Indicates that the item should be kept at least until the given time, after which it behaves like CACHE_TEMPORARY.

Implements Drush\Cache\CacheInterface.

Definition at line 73 of file FileCache.php.

References DRUSH_CACHE_PERMANENT, DRUSH_CACHE_TEMPORARY, drush_mkdir(), Drush\Cache\FileCache\getFilePath(), and Drush\Cache\FileCache\writeFile().

Here is the call graph for this function:

Drush\Cache\FileCache::writeFile (   $filename,
  $cache 
)

Serializes data and write it to the given filename.

Parameters
string$filenameAbsolute path to filename to write cache data.
$cacheCache data to serialize and write to $filename.

Reimplemented in Drush\Cache\JSONCache.

Definition at line 107 of file FileCache.php.

Referenced by Drush\Cache\FileCache\set().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:

File

doxygen/html/classDrush_1_1Cache_1_1FileCache.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: Drush\Cache\FileCache Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>Drush</b></li><li class="navelem"><b>Cache</b></li><li class="navelem"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html">FileCache</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classDrush_1_1Cache_1_1FileCache-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Drush\Cache\FileCache Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for Drush\Cache\FileCache:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache__inherit__graph.png" border="0" usemap="#Drush_0CCache_0CFileCache_inherit__map" alt="Inheritance graph"/></div>
<map name="Drush_0CCache_0CFileCache_inherit__map" id="Drush_0CCache_0CFileCache_inherit__map">
<area shape="rect" id="node5" href="classDrush_1_1Cache_1_1JSONCache.html" title="Drush\\Cache\\JSONCache" alt="" coords="13,160,189,189"/><area shape="rect" id="node2" href="interfaceDrush_1_1Cache_1_1CacheInterface.html" title="Drush\\Cache\\CacheInterface" alt="" coords="5,5,197,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for Drush\Cache\FileCache:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache__coll__graph.png" border="0" usemap="#Drush_0CCache_0CFileCache_coll__map" alt="Collaboration graph"/></div>
<map name="Drush_0CCache_0CFileCache_coll__map" id="Drush_0CCache_0CFileCache_coll__map">
<area shape="rect" id="node2" href="interfaceDrush_1_1Cache_1_1CacheInterface.html" title="Drush\\Cache\\CacheInterface" alt="" coords="5,5,197,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a88300712df4c30ea8c0039d037f081ae"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html#a88300712df4c30ea8c0039d037f081ae">__construct</a> ($bin)</td></tr>
<tr class="memitem:ab324a73105e21d2e133a440286189d1d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html#ab324a73105e21d2e133a440286189d1d">cacheDirectory</a> ($bin=NULL)</td></tr>
<tr class="memitem:a46fe7a68c7ffd26a080471b7a39edcb4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html#a46fe7a68c7ffd26a080471b7a39edcb4">get</a> ($cid)</td></tr>
<tr class="memitem:a6679c82e05f8074299bb28ac69b27b7b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html#a6679c82e05f8074299bb28ac69b27b7b">getMultiple</a> (&amp;$cids)</td></tr>
<tr class="memitem:afd9722e235555339b315a12dca41d761"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html#afd9722e235555339b315a12dca41d761">readFile</a> ($filename)</td></tr>
<tr class="memitem:a3dbfdb88cc4a26a874c7ecce16341187"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html#a3dbfdb88cc4a26a874c7ecce16341187">set</a> ($cid, $data, $expire=<a class="el" href="includes_2cache_8inc.html#a9f0a518bb0b1e6c3397756383fc72316">DRUSH_CACHE_PERMANENT</a>)</td></tr>
<tr class="memitem:a09e13b7553204d370b5a78a85df395a0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html#a09e13b7553204d370b5a78a85df395a0">writeFile</a> ($filename, $cache)</td></tr>
<tr class="memitem:a44a013d5f478004d9899ebc189bb89d3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html#a44a013d5f478004d9899ebc189bb89d3">clear</a> ($cid=NULL, $wildcard=FALSE)</td></tr>
<tr class="memitem:a86ab9c0ba83028da4596360f93eeebc8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html#a86ab9c0ba83028da4596360f93eeebc8">isEmpty</a> ()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a35aa3321c1ad808639bf698debecf130"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35aa3321c1ad808639bf698debecf130"></a>
const&#160;</td><td class="memItemRight" valign="bottom"><b>EXTENSION</b> = '.cache'</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ad5012c0e30a75f821b2c42320591621f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Cache_1_1FileCache.html#ad5012c0e30a75f821b2c42320591621f">getFilePath</a> ($cid)</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a32b9362534f6ec05bb1df509061a9128"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a32b9362534f6ec05bb1df509061a9128"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$bin</b></td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Default cache implementation.</p>
<p>This cache implementation uses plain text files containing serialized php to store cached data. Each cache bin corresponds to a directory by the same name. </p>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00017">17</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>
</div><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a88300712df4c30ea8c0039d037f081ae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Cache\FileCache::__construct </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$bin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$bin</td><td>The cache bin for which the object is created. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="interfaceDrush_1_1Cache_1_1CacheInterface.html#ab9bdc5d2b7ed39769f4eea5f0930823a">Drush\Cache\CacheInterface</a>.</p>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00021">21</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>

<p>References <a class="el" href="FileCache_8php_source.html#l00031">Drush\Cache\FileCache\cacheDirectory()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_a88300712df4c30ea8c0039d037f081ae_cgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_a88300712df4c30ea8c0039d037f081ae_cgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_a88300712df4c30ea8c0039d037f081ae_cgraph" id="classDrush_1_1Cache_1_1FileCache_a88300712df4c30ea8c0039d037f081ae_cgraph">
<area shape="rect" id="node3" href="classDrush_1_1Cache_1_1FileCache.html#ab324a73105e21d2e133a440286189d1d" title="Drush\\Cache\\FileCache\l\\cacheDirectory" alt="" coords="216,350,379,397"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="428,359,580,388"/><area shape="rect" id="node7" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="640,5,763,35"/><area shape="rect" id="node13" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="647,256,756,285"/><area shape="rect" id="node21" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="840,359,933,388"/><area shape="rect" id="node23" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1009,241,1121,271"/><area shape="rect" id="node35" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1047,355,1084,384"/><area shape="rect" id="node48" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="631,463,772,492"/><area shape="rect" id="node51" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="633,516,769,545"/><area shape="rect" id="node9" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1001,31,1129,60"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1649,215,1777,244"/><area shape="rect" id="node15" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="844,31,929,60"/><area shape="rect" id="node19" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="823,135,951,164"/><area shape="rect" id="node44" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="823,187,951,234"/><area shape="rect" id="node25" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1412,240,1567,269"/><area shape="rect" id="node28" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1180,136,1361,165"/><area shape="rect" id="node31" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1232,189,1309,219"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1204,345,1337,391"/><area shape="rect" id="node39" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1417,348,1561,377"/><area shape="rect" id="node41" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1616,348,1811,377"/></map>
</div>
</p>

</div>
</div>
<h2>Member Function Documentation</h2>
<a class="anchor" id="ab324a73105e21d2e133a440286189d1d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Cache\FileCache::cacheDirectory </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$bin</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the cache directory for the given bin.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$bin</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00031">31</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>

<p>References <a class="el" href="includes_2environment_8inc_source.html#l00691">drush_directory_cache()</a>.</p>

<p>Referenced by <a class="el" href="FileCache_8php_source.html#l00021">Drush\Cache\FileCache\__construct()</a>, and <a class="el" href="FileCache_8php_source.html#l00111">Drush\Cache\FileCache\clear()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_ab324a73105e21d2e133a440286189d1d_cgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_ab324a73105e21d2e133a440286189d1d_cgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_ab324a73105e21d2e133a440286189d1d_cgraph" id="classDrush_1_1Cache_1_1FileCache_ab324a73105e21d2e133a440286189d1d_cgraph">
<area shape="rect" id="node3" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="217,359,369,388"/><area shape="rect" id="node5" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="429,5,552,35"/><area shape="rect" id="node11" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="436,256,545,285"/><area shape="rect" id="node19" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="629,359,723,388"/><area shape="rect" id="node21" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="799,241,911,271"/><area shape="rect" id="node33" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="836,355,873,384"/><area shape="rect" id="node46" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="420,463,561,492"/><area shape="rect" id="node49" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="423,516,559,545"/><area shape="rect" id="node7" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="791,31,919,60"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1439,215,1567,244"/><area shape="rect" id="node13" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="633,31,719,60"/><area shape="rect" id="node17" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="612,135,740,164"/><area shape="rect" id="node42" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="612,187,740,234"/><area shape="rect" id="node23" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1201,240,1356,269"/><area shape="rect" id="node26" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="969,136,1151,165"/><area shape="rect" id="node29" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1021,189,1099,219"/><area shape="rect" id="node35" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="993,345,1127,391"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1207,348,1351,377"/><area shape="rect" id="node39" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1405,348,1600,377"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_ab324a73105e21d2e133a440286189d1d_icgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_ab324a73105e21d2e133a440286189d1d_icgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_ab324a73105e21d2e133a440286189d1d_icgraph" id="classDrush_1_1Cache_1_1FileCache_ab324a73105e21d2e133a440286189d1d_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Cache_1_1FileCache.html#a88300712df4c30ea8c0039d037f081ae" title="Drush\\Cache\\FileCache\l\\__construct" alt="" coords="216,5,379,51"/><area shape="rect" id="node5" href="classDrush_1_1Cache_1_1FileCache.html#a44a013d5f478004d9899ebc189bb89d3" title="Drush\\Cache\\FileCache\l\\clear" alt="" coords="216,74,379,121"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a44a013d5f478004d9899ebc189bb89d3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Cache\FileCache::clear </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$cid</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$wildcard</em> = <code>FALSE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Expire data from the cache. If called without arguments, expirable entries will be cleared from all known cache bins.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$cid</td><td>If set, the cache ID to delete. Otherwise, all cache entries that can expire are deleted. </td></tr>
    <tr><td class="paramtype">bool</td><td class="paramname">$wildcard</td><td>If set to TRUE, the $cid is treated as a substring to match rather than a complete ID. The match is a right hand match. If '*' is given as $cid, the bin $bin will be emptied. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="interfaceDrush_1_1Cache_1_1CacheInterface.html#ade526d0d60fe3b7e0eb6c6a171cc3865">Drush\Cache\CacheInterface</a>.</p>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00111">111</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>

<p>References <a class="el" href="FileCache_8php_source.html#l00031">Drush\Cache\FileCache\cacheDirectory()</a>, <a class="el" href="filesystem_8inc_source.html#l00126">drush_delete_dir()</a>, <a class="el" href="filesystem_8inc_source.html#l00661">drush_scan_directory()</a>, and <a class="el" href="FileCache_8php_source.html#l00153">Drush\Cache\FileCache\getFilePath()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_a44a013d5f478004d9899ebc189bb89d3_cgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_a44a013d5f478004d9899ebc189bb89d3_cgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_a44a013d5f478004d9899ebc189bb89d3_cgraph" id="classDrush_1_1Cache_1_1FileCache_a44a013d5f478004d9899ebc189bb89d3_cgraph">
<area shape="rect" id="node3" href="classDrush_1_1Cache_1_1FileCache.html#ab324a73105e21d2e133a440286189d1d" title="Drush\\Cache\\FileCache\l\\cacheDirectory" alt="" coords="216,388,379,435"/><area shape="rect" id="node55" href="group__filesystemfunctions.html#gabff54c630a451976fc121257f6efd960" title="drush_delete_dir" alt="" coords="239,470,356,500"/><area shape="rect" id="node60" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="441,546,588,576"/><area shape="rect" id="node69" href="classDrush_1_1Cache_1_1FileCache.html#ad5012c0e30a75f821b2c42320591621f" title="Drush\\Cache\\FileCache\l\\getFilePath" alt="" coords="216,574,379,620"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="439,376,591,405"/><area shape="rect" id="node7" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="661,9,784,38"/><area shape="rect" id="node13" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="668,180,777,209"/><area shape="rect" id="node21" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="861,74,955,104"/><area shape="rect" id="node23" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1039,180,1151,209"/><area shape="rect" id="node35" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1076,316,1113,345"/><area shape="rect" id="node48" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="652,453,793,482"/><area shape="rect" id="node51" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="655,506,791,536"/><area shape="rect" id="node9" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1031,17,1159,46"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1687,185,1815,214"/><area shape="rect" id="node15" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="865,21,951,50"/><area shape="rect" id="node19" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="844,128,972,157"/><area shape="rect" id="node44" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="844,282,972,328"/><area shape="rect" id="node25" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1449,185,1604,214"/><area shape="rect" id="node28" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1217,222,1399,252"/><area shape="rect" id="node31" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1269,276,1347,305"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1241,328,1375,375"/><area shape="rect" id="node39" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1455,318,1599,348"/><area shape="rect" id="node41" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1653,318,1848,348"/><area shape="rect" id="node57" href="group__filesystemfunctions.html#ga7ba5be839cd5d2104eaf9c26da63c97d" title="drush_delete_dir_contents" alt="" coords="428,470,601,500"/><area shape="rect" id="node62" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="871,453,945,482"/><area shape="rect" id="node64" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="1023,470,1167,516"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a46fe7a68c7ffd26a080471b7a39edcb4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Cache\FileCache::get </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$cid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return data from the persistent cache.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$cid</td><td>The cache ID of the data to retrieve.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The cache or FALSE on failure. </dd></dl>

<p>Implements <a class="el" href="interfaceDrush_1_1Cache_1_1CacheInterface.html#aa6532f596133c8e6139513cd3580f96e">Drush\Cache\CacheInterface</a>.</p>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00036">36</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>

<p>References <a class="el" href="FileCache_8php_source.html#l00042">Drush\Cache\FileCache\getMultiple()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_a46fe7a68c7ffd26a080471b7a39edcb4_cgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_a46fe7a68c7ffd26a080471b7a39edcb4_cgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_a46fe7a68c7ffd26a080471b7a39edcb4_cgraph" id="classDrush_1_1Cache_1_1FileCache_a46fe7a68c7ffd26a080471b7a39edcb4_cgraph">
<area shape="rect" id="node3" href="classDrush_1_1Cache_1_1FileCache.html#a6679c82e05f8074299bb28ac69b27b7b" title="Drush\\Cache\\FileCache\l\\getMultiple" alt="" coords="237,39,400,86"/><area shape="rect" id="node5" href="classDrush_1_1Cache_1_1FileCache.html#ad5012c0e30a75f821b2c42320591621f" title="Drush\\Cache\\FileCache\l\\getFilePath" alt="" coords="448,5,611,51"/><area shape="rect" id="node7" href="classDrush_1_1Cache_1_1FileCache.html#afd9722e235555339b315a12dca41d761" title="Drush\\Cache\\FileCache\l\\readFile" alt="" coords="448,74,611,121"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad5012c0e30a75f821b2c42320591621f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Cache\FileCache::getFilePath </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$cid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts a cache id to a full path.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$cid</td><td>The cache ID of the data to retrieve.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The full path to the cache file. </dd></dl>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00153">153</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>

<p>Referenced by <a class="el" href="FileCache_8php_source.html#l00111">Drush\Cache\FileCache\clear()</a>, <a class="el" href="FileCache_8php_source.html#l00042">Drush\Cache\FileCache\getMultiple()</a>, and <a class="el" href="FileCache_8php_source.html#l00073">Drush\Cache\FileCache\set()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_ad5012c0e30a75f821b2c42320591621f_icgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_ad5012c0e30a75f821b2c42320591621f_icgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_ad5012c0e30a75f821b2c42320591621f_icgraph" id="classDrush_1_1Cache_1_1FileCache_ad5012c0e30a75f821b2c42320591621f_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Cache_1_1FileCache.html#a44a013d5f478004d9899ebc189bb89d3" title="Drush\\Cache\\FileCache\l\\clear" alt="" coords="227,5,389,51"/><area shape="rect" id="node5" href="classDrush_1_1Cache_1_1FileCache.html#a6679c82e05f8074299bb28ac69b27b7b" title="Drush\\Cache\\FileCache\l\\getMultiple" alt="" coords="227,74,389,121"/><area shape="rect" id="node9" href="classDrush_1_1Cache_1_1FileCache.html#a3dbfdb88cc4a26a874c7ecce16341187" title="Drush\\Cache\\FileCache\\set" alt="" coords="216,144,400,173"/><area shape="rect" id="node7" href="classDrush_1_1Cache_1_1FileCache.html#a46fe7a68c7ffd26a080471b7a39edcb4" title="Drush\\Cache\\FileCache\\get" alt="" coords="448,83,632,112"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6679c82e05f8074299bb28ac69b27b7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Cache\FileCache::getMultiple </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$cids</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return data from the persistent cache when given an array of cache IDs.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">array</td><td class="paramname">$cids</td><td>An array of cache IDs for the data to retrieve. This is passed by reference, and will have the IDs successfully returned from cache removed.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An array of the items successfully returned from cache indexed by cid. </dd></dl>

<p>Implements <a class="el" href="interfaceDrush_1_1Cache_1_1CacheInterface.html#a0e0a5861cc3510c049f5d2f9634113e8">Drush\Cache\CacheInterface</a>.</p>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00042">42</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>

<p>References <a class="el" href="FileCache_8php_source.html#l00153">Drush\Cache\FileCache\getFilePath()</a>, and <a class="el" href="FileCache_8php_source.html#l00068">Drush\Cache\FileCache\readFile()</a>.</p>

<p>Referenced by <a class="el" href="FileCache_8php_source.html#l00036">Drush\Cache\FileCache\get()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_a6679c82e05f8074299bb28ac69b27b7b_cgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_a6679c82e05f8074299bb28ac69b27b7b_cgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_a6679c82e05f8074299bb28ac69b27b7b_cgraph" id="classDrush_1_1Cache_1_1FileCache_a6679c82e05f8074299bb28ac69b27b7b_cgraph">
<area shape="rect" id="node3" href="classDrush_1_1Cache_1_1FileCache.html#ad5012c0e30a75f821b2c42320591621f" title="Drush\\Cache\\FileCache\l\\getFilePath" alt="" coords="216,5,379,51"/><area shape="rect" id="node5" href="classDrush_1_1Cache_1_1FileCache.html#afd9722e235555339b315a12dca41d761" title="Drush\\Cache\\FileCache\l\\readFile" alt="" coords="216,74,379,121"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_a6679c82e05f8074299bb28ac69b27b7b_icgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_a6679c82e05f8074299bb28ac69b27b7b_icgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_a6679c82e05f8074299bb28ac69b27b7b_icgraph" id="classDrush_1_1Cache_1_1FileCache_a6679c82e05f8074299bb28ac69b27b7b_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Cache_1_1FileCache.html#a46fe7a68c7ffd26a080471b7a39edcb4" title="Drush\\Cache\\FileCache\\get" alt="" coords="216,13,400,43"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a86ab9c0ba83028da4596360f93eeebc8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Cache\FileCache::isEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check if a cache bin is empty.</p>
<p>A cache bin is considered empty if it does not contain any valid data for any cache ID.</p>
<dl class="section return"><dt>Returns</dt><dd>TRUE if the cache bin specified is empty. </dd></dl>

<p>Implements <a class="el" href="interfaceDrush_1_1Cache_1_1CacheInterface.html#a83df84ce1b547b2e5410ad16710bfe97">Drush\Cache\CacheInterface</a>.</p>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00139">139</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>

<p>References <a class="el" href="filesystem_8inc_source.html#l00661">drush_scan_directory()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_a86ab9c0ba83028da4596360f93eeebc8_cgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_a86ab9c0ba83028da4596360f93eeebc8_cgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_a86ab9c0ba83028da4596360f93eeebc8_cgraph" id="classDrush_1_1Cache_1_1FileCache_a86ab9c0ba83028da4596360f93eeebc8_cgraph">
<area shape="rect" id="node3" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="216,100,363,129"/><area shape="rect" id="node5" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="411,100,485,129"/><area shape="rect" id="node7" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="535,5,679,51"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1151,151,1279,180"/><area shape="rect" id="node11" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="757,125,835,155"/><area shape="rect" id="node17" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="588,203,625,232"/><area shape="rect" id="node13" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="913,176,1068,205"/><area shape="rect" id="node19" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="729,207,863,254"/><area shape="rect" id="node21" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="919,229,1063,259"/><area shape="rect" id="node23" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1117,229,1312,259"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="afd9722e235555339b315a12dca41d761"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Cache\FileCache::readFile </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the contents of the given filename unserialized.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$filename</td><td>Absolute path to filename to read contents from. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="classDrush_1_1Cache_1_1JSONCache.html#a8cce2c28c2979437372b8a7adeb7e701">Drush\Cache\JSONCache</a>.</p>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00068">68</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>

<p>Referenced by <a class="el" href="FileCache_8php_source.html#l00042">Drush\Cache\FileCache\getMultiple()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_afd9722e235555339b315a12dca41d761_icgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_afd9722e235555339b315a12dca41d761_icgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_afd9722e235555339b315a12dca41d761_icgraph" id="classDrush_1_1Cache_1_1FileCache_afd9722e235555339b315a12dca41d761_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Cache_1_1FileCache.html#a6679c82e05f8074299bb28ac69b27b7b" title="Drush\\Cache\\FileCache\l\\getMultiple" alt="" coords="216,5,379,51"/><area shape="rect" id="node5" href="classDrush_1_1Cache_1_1FileCache.html#a46fe7a68c7ffd26a080471b7a39edcb4" title="Drush\\Cache\\FileCache\\get" alt="" coords="427,13,611,43"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a3dbfdb88cc4a26a874c7ecce16341187"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Cache\FileCache::set </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$cid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$expire</em> = <code><a class="el" href="includes_2cache_8inc.html#a9f0a518bb0b1e6c3397756383fc72316">DRUSH_CACHE_PERMANENT</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Store data in the persistent cache.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$cid</td><td>The cache ID of the data to store. </td></tr>
    <tr><td class="paramtype">array</td><td class="paramname">$data</td><td>The data to store in the cache. </td></tr>
    <tr><td class="paramtype"></td><td class="paramname">$expire</td><td>One of the following values:<ul>
<li>DRUSH_CACHE_PERMANENT: Indicates that the item should never be removed unless explicitly told to using _drush_cache_clear_all() with a cache ID.</li>
<li>DRUSH_CACHE_TEMPORARY: Indicates that the item should be removed at the next general cache wipe.</li>
<li>A Unix timestamp: Indicates that the item should be kept at least until the given time, after which it behaves like CACHE_TEMPORARY. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="interfaceDrush_1_1Cache_1_1CacheInterface.html#a89750443033f42a7cd160d560ed4b785">Drush\Cache\CacheInterface</a>.</p>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00073">73</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>

<p>References <a class="el" href="includes_2cache_8inc_source.html#l00019">DRUSH_CACHE_PERMANENT</a>, <a class="el" href="includes_2cache_8inc_source.html#l00024">DRUSH_CACHE_TEMPORARY</a>, <a class="el" href="filesystem_8inc_source.html#l00355">drush_mkdir()</a>, <a class="el" href="FileCache_8php_source.html#l00153">Drush\Cache\FileCache\getFilePath()</a>, and <a class="el" href="FileCache_8php_source.html#l00107">Drush\Cache\FileCache\writeFile()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_a3dbfdb88cc4a26a874c7ecce16341187_cgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_a3dbfdb88cc4a26a874c7ecce16341187_cgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_a3dbfdb88cc4a26a874c7ecce16341187_cgraph" id="classDrush_1_1Cache_1_1FileCache_a3dbfdb88cc4a26a874c7ecce16341187_cgraph">
<area shape="rect" id="node3" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="272,149,365,179"/><area shape="rect" id="node27" href="classDrush_1_1Cache_1_1FileCache.html#ad5012c0e30a75f821b2c42320591621f" title="Drush\\Cache\\FileCache\l\\getFilePath" alt="" coords="237,202,400,249"/><area shape="rect" id="node29" href="classDrush_1_1Cache_1_1FileCache.html#a09e13b7553204d370b5a78a85df395a0" title="Drush\\Cache\\FileCache\l\\writeFile" alt="" coords="237,271,400,318"/><area shape="rect" id="node5" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="448,108,560,137"/><area shape="rect" id="node18" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="485,191,523,220"/><area shape="rect" id="node7" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="841,56,996,85"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1079,81,1207,111"/><area shape="rect" id="node11" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="609,160,791,189"/><area shape="rect" id="node14" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="661,5,739,35"/><area shape="rect" id="node20" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="633,213,767,259"/><area shape="rect" id="node22" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="847,160,991,189"/><area shape="rect" id="node24" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1045,160,1240,189"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a09e13b7553204d370b5a78a85df395a0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Cache\FileCache::writeFile </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$cache</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Serializes data and write it to the given filename.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$filename</td><td>Absolute path to filename to write cache data. </td></tr>
    <tr><td class="paramtype"></td><td class="paramname">$cache</td><td>Cache data to serialize and write to $filename. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="classDrush_1_1Cache_1_1JSONCache.html#a65ed9a2957d7c68efe32ab2d1b48e5f0">Drush\Cache\JSONCache</a>.</p>

<p>Definition at line <a class="el" href="FileCache_8php_source.html#l00107">107</a> of file <a class="el" href="FileCache_8php_source.html">FileCache.php</a>.</p>

<p>Referenced by <a class="el" href="FileCache_8php_source.html#l00073">Drush\Cache\FileCache\set()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Cache_1_1FileCache_a09e13b7553204d370b5a78a85df395a0_icgraph.png" border="0" usemap="#classDrush_1_1Cache_1_1FileCache_a09e13b7553204d370b5a78a85df395a0_icgraph" alt=""/></div>
<map name="classDrush_1_1Cache_1_1FileCache_a09e13b7553204d370b5a78a85df395a0_icgraph" id="classDrush_1_1Cache_1_1FileCache_a09e13b7553204d370b5a78a85df395a0_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Cache_1_1FileCache.html#a3dbfdb88cc4a26a874c7ecce16341187" title="Drush\\Cache\\FileCache\\set" alt="" coords="216,13,400,43"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>lib/Drush/Cache/<a class="el" href="FileCache_8php_source.html">FileCache.php</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 8 2014 09:05:01 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>