WP_AI_Client_Cache::has
Determines whether an item is present in the cache.
Метод класса: WP_AI_Client_Cache{}
Хуков нет.
Возвращает
bool. True if the item exists in the cache, false otherwise.
Использование
$WP_AI_Client_Cache = new WP_AI_Client_Cache(); $WP_AI_Client_Cache->has( $key ): bool;
- $key(строка) (обязательный)
- The cache item key.
Список изменений
| С версии 7.0.0 | Введена. |
Код WP_AI_Client_Cache::has() WP AI Client Cache::has WP 7.1.2
public function has( $key ): bool {
$found = false;
wp_cache_get( $key, $this->get_cache_group(), false, $found );
return (bool) $found;
}