Class Cache_Engine_Apc

Description

Implements interfaces:

The APC cache engine. This engine requires the APC extension to be installed. Items stored with the APC engine use the APC-provided variable cache mechanism for storage.

Located in /cache/lib/Cache/Engine/Apc.php (line 11)


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

Called statically to ensure this engine is supported before constructing it. The apc engine is only supported when the APC extension is also present.

  • 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 47)

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 38)

Returns false to indicate this engine's item 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 29)

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.
logger (line 71)

Return a logger instance for the class

  • access: public
void logger ()
__constructor (line 18)

Constructor

  • access: public
void __constructor ()

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