WP_AI_Client_Cache::delete
Delete an item from the cache by its unique key.
Method of the class: WP_AI_Client_Cache{}
No Hooks.
Returns
true|false. True if the item was successfully removed. False if there was an error.
Usage
$WP_AI_Client_Cache = new WP_AI_Client_Cache(); $WP_AI_Client_Cache->delete( $key ): bool;
- $key(string) (required)
- The unique cache key of the item to delete.
Changelog
| Since 7.0.0 | Introduced. |
WP_AI_Client_Cache::delete() WP AI Client Cache::delete code WP 7.0
public function delete( $key ): bool {
return wp_cache_delete( $key, self::CACHE_GROUP );
}