Serves as a utility function to determine whether a key exists in the cache.
Parameters
$key
int|stringrequired- Cache key to check for existence.
$group
stringrequired- Cache group for the key existence check.
Source
protected function _exists( $key, $group ) {
return isset( $this->cache[ $group ] ) && ( isset( $this->cache[ $group ][ $key ] ) || array_key_exists( $key, $this->cache[ $group ] ) );
}
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.