Interface CalendarSolution_Cache

Description

Methods that each cache class needs to define

Users planning to create their own cache classes should follow the procedures implemented in CalendarSolution_Cache_Memcache.

Located in /include/CalendarSolution/Cache.php (line 25)


	
			
Method Summary
bool flush ()
mixed get (string $key)
bool set (string $key, mixed $value)
Methods
flush (line 30)

Flush all data from the cache

bool flush ()
get (line 39)

Obtains data from the cache

  • return: the data on success, false on failure
  • access: public
mixed get (string $key)
  • string $key: the data element's name
set (line 55)

Stores data in the cache

If $expiration_time has not been set, this method sets it to 00:00:01 tomorrow.

  • access: public
  • uses: CalendarSolution_Cache::$expiration_time - to know when the data should exipre
bool set (string $key, mixed $value)
  • string $key: the data element's name
  • mixed $value: the data to be stored

Documentation generated on Wed, 21 Mar 2012 14:16:41 -0400 by phpDocumentor 1.4.4