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
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
Stores an object in the cache
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
Removes the specified object from cache
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