[PLUGINS][Oomox] getEntity added.

[CORE][Cache] exists added.
This commit is contained in:
2021-11-26 17:11:28 +00:00
committed by Diogo Peralta Cordeiro
parent 7b9d388a44
commit 7145dba8af
3 changed files with 26 additions and 6 deletions

View File

@@ -151,6 +151,11 @@ abstract class Cache
return self::$pools[$pool]->delete($key);
}
public static function exists(string $key, string $pool = 'default'): bool
{
return self::$pools[$pool]->hasItem($key);
}
/**
* Retrieve a list from the cache, with a different implementation
* for redis and others, trimming to $max_count if given