API17

JCacheStorageFile: Difference between revisions

From Joomla! Documentation

m moving preparation
m clean up
Line 2: Line 2:
=={{JVer|11.1}} JCacheStorageFile==
=={{JVer|11.1}} JCacheStorageFile==
===Description===
===Description===
{{Description:JCacheStorageFile}}
* 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.
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JCacheStorageFile|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Methods===
===Methods===
{| class="wikitable sortable"
{| class="wikitable sortable"
Line 62: Line 60:
* {{JVer|11.1}} Subpackage [[API17:Subpackage Cache|Cache]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage Cache|Cache]]
* [[API17:JCacheStorageFile|Other versions of JCacheStorageFile]]
* [[API17:JCacheStorageFile|Other versions of JCacheStorageFile]]
{{SeeAlso:JCacheStorageFile}}
{{subst:SeeAlso:JCacheStorageFile}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JCacheStorageFile|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 14:52, 24 March 2017

Joomla 11.1 JCacheStorageFile

Description

  • 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.

Methods

Visibility Method name Description
public __construct Constructor.
public clean Clean cache for a group given a mode.
public gc Garbage collect expired cache data.
public get Get cached data from a file by id and group.
public getAll Get all cached data.
public lock Lock cached item.
public remove Remove a cached data file by id and group.
public store Store the data to a file by id and group.
public unlock Unlock cached item.
public static test Test to see if the cache storage is available.
  • Defined in libraries/joomla/cache/storage/file.php
  • Extends JCacheStorage

Importing

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

See also

{{subst:SeeAlso:JCacheStorageFile}}

User contributed notes

<CodeExamplesForm />