Class Cache_Engine_Memory_Item

Description

The key object for the memory cache engine.

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

Cache_ItemBase
   |
   --Cache_Engine_Memory_Item
Variable Summary
 mixed $cache
Method Summary
 Cache_Engine_Memory_Item __construct ( &$cache,  $key)
 boolean exists ()
 mixed read ()
 void remove ()
 void write (mixed $data)
Variables
mixed $cache (line 66)
  • access: protected

Inherited Variables

Inherited from Cache_ItemBase

Cache_ItemBase::$key
Methods
Constructor __construct (line 71)

Constructor

  • access: public
Cache_Engine_Memory_Item __construct ( &$cache,  $key)
  • &$cache
  • $key

Redefinition of:
Cache_ItemBase::__construct()
Constructor
exists (line 83)

Test for the existence of the key in the cache. Return true if it exists, false otherwise.

  • access: public
boolean exists ()

Redefinition of:
Cache_ItemBase::exists()
Test for the existence of the key in the cache. Return true if it exists, false otherwise.
read (line 94)

Return the value associated with the key from the cache

If the key does not have a value, this function returns null.

  • access: public
mixed read ()

Redefinition of:
Cache_ItemBase::read()
Return the value associated with the key from the cache
remove (line 110)

Remove the key from the cache

  • access: public
void remove ()

Redefinition of:
Cache_ItemBase::remove()
Remove the key from the cache
write (line 103)

Set the value associated with the key

  • access: public
void write (mixed $data)
  • mixed $data: The value to associate with the key

Redefinition of:
Cache_ItemBase::write()
Set the value associated with the key

Inherited Methods

Inherited From Cache_ItemBase

 Cache_ItemBase::__construct()
 Cache_ItemBase::exists()
 Cache_ItemBase::key()
 Cache_ItemBase::lock()
 Cache_ItemBase::marshall()
 Cache_ItemBase::mtime()
 Cache_ItemBase::read()
 Cache_ItemBase::remove()
 Cache_ItemBase::unlock()
 Cache_ItemBase::unmarshall()
 Cache_ItemBase::write()
Class Constants

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