X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FCache%2FICache.php;h=5984409bccc76f090bdb9051ce69bfecdd00caef;hb=017a57cf1e2b7db6bed4abf7167b4086af73311c;hp=f57e105cc0ab880737ef238c3d9f55ad689b6858;hpb=86bf2ee45a7c7409dbc470b5b1706b19e7e40507;p=friendica.git diff --git a/src/Core/Cache/ICache.php b/src/Core/Cache/ICache.php index f57e105cc0..5984409bcc 100644 --- a/src/Core/Cache/ICache.php +++ b/src/Core/Cache/ICache.php @@ -1,24 +1,31 @@ . + * + */ namespace Friendica\Core\Cache; /** * Cache Interface - * - * @author Hypolite Petovan */ interface ICache { - const MONTH = 2592000; - const WEEK = 604800; - const DAY = 86400; - const HOUR = 3600; - const HALF_HOUR = 1800; - const QUARTER_HOUR = 900; - const FIVE_MINUTES = 300; - const MINUTE = 60; - const INFINITE = 0; - /** * Lists all cache keys * @@ -46,7 +53,7 @@ interface ICache * * @return bool */ - public function set($key, $value, $ttl = self::FIVE_MINUTES); + public function set($key, $value, $ttl = Duration::FIVE_MINUTES); /** * Delete a key from the cache @@ -64,4 +71,11 @@ interface ICache * @return bool */ public function clear($outdated = true); + + /** + * Returns the name of the current cache + * + * @return string + */ + public function getName(); }