has static method
Checks if a value with the specified key exists in the cache.
- Parameter
keyThe unique identifier for the cached value. - Returns:
trueif thekeyis present in the cache, otherwisefalse. Usage:
var exists = Cache.has("user");
Implementation
static bool has(String key) => cacheDriver.has(key);