WP_AI_Client_Cache::deleteMultiple
Deletes multiple cache items in a single operation.
Method of the class: WP_AI_Client_Cache{}
No Hooks.
Returns
true|false. True if the items were successfully removed. False if there was an error.
Usage
$WP_AI_Client_Cache = new WP_AI_Client_Cache(); $WP_AI_Client_Cache->deleteMultiple( $keys ): bool;
- $keys(iterable
) (required) - A list of string-based keys to be deleted.
Changelog
| Since 7.0.0 | Introduced. |
WP_AI_Client_Cache::deleteMultiple() WP AI Client Cache::deleteMultiple code WP 7.0.2
public function deleteMultiple( $keys ): bool {
$keys_array = $this->iterable_to_array( $keys );
$results = wp_cache_delete_multiple( $keys_array, self::CACHE_GROUP );
// Return true only if all operations succeeded.
return ! in_array( false, $results, true );
}