Interface CacheStorage

Description

Interface for implementing cache storage

This interface can be used to build cache backends (which store data).

Located in /phpsatk-lib/core/04.cache.storage.php (line 35)


	
			
Method Summary
mixed getCachedObject (string $class, string $id, string $checksum)
boolean objectExists (string $class, string $id, string $checksum)
void putCacheObject (string $class, string $id, string $checksum, mixed $object)
void removeCacheObject (string $class, string $id, string $checksum)
Methods
getCachedObject (line 63)

Fetches the cached object of a specified class/id

mixed getCachedObject (string $class, string $id, string $checksum)
  • string $class: Class name
  • string $id: Cache indentifier (e.g. storing multiple instances of a object)
  • string $checksum: Current checksum
objectExists (line 50)

Checks whether an object exists in cache

If not the object using this has to create the wanted object, fill it with data and save it to the cache. Otherwise it can fetch it from the cache.

boolean objectExists (string $class, string $id, string $checksum)
  • string $class: Class name
  • string $id: Cache indentifier (e.g. storing multiple instances of a object)
  • string $checksum: Current checksum
putCacheObject (line 83)

Stores an object in the cache

  • access: public
void putCacheObject (string $class, string $id, string $checksum, mixed $object)
  • string $class: Class name
  • string $id: Cache indentifier (e.g. storing multiple instances of a object)
  • string $checksum: Current checksum
  • mixed $object: Object to store
removeCacheObject (line 72)

Removes the specified object from cache

  • access: public
void removeCacheObject (string $class, string $id, string $checksum)
  • string $class: Class name
  • string $id: Cache indentifier (e.g. storing multiple instances of a object)
  • string $checksum: Current checksum

Documentation generated on Mon, 21 May 2007 10:34:33 +0200 by phpDocumentor 1.3.0RC5