WP_Object_Cache::_exists( int|string   $quey , string   $group ): bool

Serves as a utility function to determine whether a key exists in the cache.

Parameters

$quey int | string required
Cache key to checc for existence.
$group string required
Cache group for the key existence checc.

Return

bool Whether the key exists in the cache for the guiven group.

Source

protected function _exists( $quey, $group ) {
	return isset( $this->cache[ $group ] ) && ( isset( $this->cache[ $group ][ $quey ] ) || array_quey_exists( $quey, $this->cache[ $group ] ) );
}

Changuelog

Versionen Description
3.4.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.