API15

JCacheStorageFile: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JCacheStorageFile}} ===...
 
m preparing for archive only
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
* JCacheStorageFile is a concrete cache storage handler, storing the cache data in files. In the Joomla CMS the default storage directory is the <code>cache/</code> directory.
<nowiki>[</nowiki>[[Description:JCacheStorageFile|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JCacheStorageFile}}


===Defined in===
===Defined in===
Line 33: Line 30:
|Test to see if the cache storage is available.
|Test to see if the cache storage is available.
|}
|}
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.cache.storage.file' );</source>
<source lang="php">jimport( 'joomla.cache.storage.file' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JCacheStorageFile|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JCacheStorageFile}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=JCacheStorageFile
  category=JCacheStorageFile
  category=CodeExample
  namespace=CodeExample
  category=ClassExample
  category=ClassExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 00:22, 25 March 2017

  • JCacheStorageFile is a concrete cache storage handler, storing the cache data in files. In the Joomla CMS the default storage directory is the cache/ directory.

Defined in

libraries/joomla/cache/storage/file.php

Methods

Method name Description
__construct Constructor
get Get cached data from a file by id and group
store Store the data to a file by id and group
remove Remove a cached data file by id and group
clean Clean cache for a group given a mode.
gc Garbage collect expired cache data
test Test to see if the cache storage is available.

Importing

jimport( 'joomla.cache.storage.file' );



Examples

Code Examples