API17

Difference between revisions of "JCacheStorageFile"

From Joomla! Documentation

m (clean up)
m (preparing for archive only)
 
Line 60: 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]]
{{subst:SeeAlso:JCacheStorageFile}}
+
 
  
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JCacheStorageFile
 
category=JCacheStorageFile
category=CodeExample
+
namespace=CodeExample
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*

Latest revision as of 20:27, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JCacheStorageFile[edit]

Description[edit]

  • 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[edit]

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[edit]

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

See also[edit]


User contributed notes[edit]

Code Examples[edit]