WordPress\AiClientDependencies\Psr\SimpleCache

CacheInterface::getpublicWP 1.0

Fetches a value from the cache.

Method of the class: CacheInterface{}

No Hooks.

Returns

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

Usage

$CacheInterface = new CacheInterface();
$CacheInterface->get( $key, $default );
$key(string) (required)
The unique key of this item in the cache.
$default(mixed)
Default value to return if the key does not exist.
Default: null

CacheInterface::get() code WP 7.0

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