WP_AI_Client_Cache::delete
Delete an item from the cache by its unique key.
Метод класса: WP_AI_Client_Cache{}
Хуков нет.
Возвращает
bool. True if the item was successfully removed. False if there was an error.
Использование
$WP_AI_Client_Cache = new WP_AI_Client_Cache(); $WP_AI_Client_Cache->delete( $key ): bool;
- $key(строка) (обязательный)
- The unique cache key of the item to delete.
Список изменений
| С версии 7.0.0 | Введена. |
Код WP_AI_Client_Cache::delete() WP AI Client Cache::delete WP 7.1.2
public function delete( $key ): bool {
return wp_cache_delete( $key, $this->get_cache_group() );
}