WordPress\AiClientDependencies\Psr\SimpleCache

CacheInterface::get │ public │ WP 1.0

Fetches a value from the cache.

Метод класса: CacheInterface{}

Хуков нет.

Возвращает

mixed. The value of the item from the cache, or $default in case of cache miss.

Использование

$CacheInterface = new CacheInterface();
$CacheInterface->get( $key, $default );
$key(строка) (обязательный)
The unique key of this item in the cache.
$default(разное)
Default value to return if the key does not exist.
По умолчанию: null

Код CacheInterface::get() WP 7.1.2

public function get($key, $default = null);