WordPress\AiClient
AiClient::setCache
Sets the PSR-16 cache for storing and retrieving cached data.
The cache can be used to store AI responses and other data to avoid redundant API calls and improve performance.
Method of the class: AiClient{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = AiClient::setCache( ?CacheInterface $cache ): void;
- ?CacheInterface $cache(required)
- .
Changelog
| Since 0.4.0 | Introduced. |
AiClient::setCache() AiClient::setCache code WP 7.0
public static function setCache(?CacheInterface $cache): void
{
self::$cache = $cache;
}