has()
has(string $key) : bool
Check if a value exists in the cache.
Parameters
string | $key | Holds the cache key to check. |
Returns
bool —Returns true if the key exists in the cache, otherwise false.