X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Finterfaces%2Fcache%2Fclass_Cacheable.php;fp=inc%2Fclasses%2Finterfaces%2Fcache%2Fclass_Cacheable.php;h=4c9ee07721b5bfa22d8f528ba40a25d5e229cccb;hp=6380f22ba29955ea7a2e9f7c5a40c8a250c9a729;hb=3f998a2d3aa2c4c16185c556d89cf755125cc699;hpb=be3e5282ba536934ddeac3daff59c5b7e43b1cd2 diff --git a/inc/classes/interfaces/cache/class_Cacheable.php b/inc/classes/interfaces/cache/class_Cacheable.php index 6380f22b..4c9ee077 100644 --- a/inc/classes/interfaces/cache/class_Cacheable.php +++ b/inc/classes/interfaces/cache/class_Cacheable.php @@ -25,10 +25,35 @@ interface Cacheable extends FrameworkInterface { /** * Does the specified offset exist in cache? * - * @param $offset The offsrt we are looking for + * @param $offset The offset we are looking for * @return $exists Wether the offset exists */ - function offsetExists ($offset); + function offsetExists($offset); + + /** + * Setter for cache offset + * + * @param $offset The offset we shall set + * @param $data Data to store in cache + * @return void + */ + function offsetSet($offset, $data); + + /** + * Getter for cache offset or "null" if not found + * + * @param $offset The offset we shall set + * @return $data Data to store in cache + */ + function offsetGet($offset); + + /** + * Purges the given cache entry + * + * @param $offset The offset we shall set + * @return void + */ + function purgeOffset($offset); } // [EOF]