There is no such function, I'm afraid.
Zend Cache is a wrapper around several other cache mechanisms. I'm not 100% familiar with all of them, e.g. I don't know if Redis or XCache offer a way of checking whether a cache key exists.
APC does not - the key does not exist if attempting to load the cached entry fails.
Memcache and Memcached don't - same as above.
In case of a file cache, checking the existence of a key involves a file lookup, which is slow by itself.
Same applies for the database cache - you'd need to launch a SQL query, which by itself is relatively slow.
If the underlying cache backends don't have a way of checking the existence of a cache key, Zend Cache has no way to offer it other than simply by running the load
function under the hood, which simply defeats the purpose of having a hasKey
function at all. In case of "slow" cache mechanisms, the lookup would actually slow you down even more.