contains()
contains(string $id, array $options = null) : boolean
Test if an entry exists in the cache.
Parameters
string | $id | cache id The cache id of the entry to check for. |
array | $options | Array of cache adapter options |
Returns
boolean —Returns TRUE if a cache entry exists for the given cache id, FALSE otherwise.