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.
Метод класса: AiClient{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = AiClient::setCache( ?CacheInterface $cache ): void;
- ?CacheInterface $cache(обязательный)
- .
Список изменений
| С версии 0.4.0 | Введена. |
Код AiClient::setCache() AiClient::setCache WP 7.0
public static function setCache(?CacheInterface $cache): void
{
self::$cache = $cache;
}