FileCache Class Reference

Detailed Description

FileCache provides simple caching functionality.

The cache is divided into different sections. All sections share the same base path.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 27 of file FileCache.php.

+ Inheritance diagram for FileCache:

Public Member Functions

 __construct ()
 
 __destruct ()
 
 setCacheDir ($cacheDir)
 
 exists ($section, $key)
 
 getDate ($section, $key)
 
 get ($section, $key)
 
 put ($section, $key, $value)
 
 clear ($section)
 
 clearAll ()
 
 configChanged (ConfigChangeEvent $event)
 

Constructor & Destructor Documentation

__construct ( )

Constructor.

Definition at line 36 of file FileCache.php.

__destruct ( )

Destructor.

Definition at line 45 of file FileCache.php.

Member Function Documentation

setCacheDir (   $cacheDir)

Set the cache directory (defaults to session_save_path if not given).

If not existing, the directory will be created relative to WCMF_BASE.

Parameters
$cacheDirString

Definition at line 55 of file FileCache.php.

exists (   $section,
  $key 
)
See also
Cache::exists()

Implements Cache.

Definition at line 62 of file FileCache.php.

getDate (   $section,
  $key 
)
See also
Cache::getDate()

Implements Cache.

Definition at line 70 of file FileCache.php.

get (   $section,
  $key 
)
See also
Cache::get()

Implements Cache.

Definition at line 81 of file FileCache.php.

put (   $section,
  $key,
  $value 
)
See also
Cache::put()

Implements Cache.

Definition at line 92 of file FileCache.php.

clear (   $section)
See also
Cache::clear()

Implements Cache.

Definition at line 101 of file FileCache.php.

clearAll ( )
See also
Cache::clearAll()

Implements Cache.

Definition at line 129 of file FileCache.php.

configChanged ( ConfigChangeEvent  $event)

Listen to ConfigChangeEvents.

Parameters
$eventConfigChangeEvent instance

Definition at line 195 of file FileCache.php.