Class Cache_Engine_Memory

Description

Implements interfaces:

The in-memory cache engine. Items stored in the in-memory cache are lost at the end of the current request.

Located in /cache/lib/Cache/Engine/Memory.php (line 10)


	
			
Variable Summary
 mixed $cache
Method Summary
 static boolean is_supported ()
 void clear ([array $options = null])
 boolean has_locking ()
 Cache_ItemBase item_for_key (string $key, array $options)
 void __constructor ()
Variables
mixed $cache (line 12)
  • access: protected
Methods
static is_supported (line 56)

Called statically to ensure this engine is supported before constructing it. The memory engine is always supported.

  • access: public
boolean is_supported ()

Implementation of:
Cache_Engine::is_supported()
Called statically to ensure this engine is supported before constructing it. Most engines will want to always return true, but in some cases it may be a good place to check that all needed extensions are present.
clear (line 46)

Clear all items from the cache

  • access: public
void clear ([array $options = null])
  • array $options: Any cache options provided by the requestor

Implementation of:
Cache_Engine::clear()
Clear all items from the cache
has_locking (line 37)

Returns false to indicate this engine's items do not provide locking

  • access: public
boolean has_locking ()

Implementation of:
Cache_Engine::has_locking()
Return true if this Engine's items provide locking
item_for_key (line 28)

Return the cache item object for the provided key.

  • access: public
Cache_ItemBase item_for_key (string $key, array $options)
  • string $key: The key to retrieve the item for
  • array $options: Any cache options provided by the requestor

Implementation of:
Cache_Engine::item_for_key()
Return the cache item object for the provided key.
__constructor (line 17)

Constructor

  • access: public
void __constructor ()

Documentation generated on Wed, 25 Apr 2012 09:46:43 -0700 by phpDocumentor 1.4.3