WP_AI_Client_Cache::delete( string $key ): bool

In this article

Delete an item from the cache by its unique key.

Parameters

$keystringrequired
The unique cache key of the item to delete.

Return

bool True if the item was successfully removed. False if there was an error.

Source

public function delete( $key ): bool {
	return wp_cache_delete( $key, self::CACHE_GROUP );
}

Changelog

VersionDescription
7.0.0Introduced.

User Contributed Notes

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