- CLASS METHOD
Alzabo::ObjectCache::MemoryStore - Cache objects in memory
use Alzabo::ObjectCache( store => 'Alzabo::ObjectCache::MemoryStore', sync => 'Alzabo::ObjectCache::NullSync' );
This class simply stores cached objects in memory. This means that a given object should never have to be created twice.
Note that pretty much all the methods that take an object as an argument will silently do nothing if the object is not already in the cache. The obvious exception is the
Many of the methods in this class really don't do anything and are here merely to support the interface that
The specified object if it is in the cache. Otherwise it returns undef.
Stores an object in the cache. This will not overwrite an existing object in the cache. To do that you must first call the
This method allows you to remove an object from the cache. This does not register the object as deleted. It is provided solely so that you can call
store_object after calling this method and have
store_object actually store the new object.
Call this method to completely clear the cache.
Dave Rolsky, <email@example.com>