Gdn_Cache::store PHP Method

store() abstract public method

This works regardless of whether the item already exists in the cache.
abstract public store ( string $Key, mixed $Value, array $Options = [] ) : boolean
$Key string Cache key used for storage.
$Value mixed Value to be cached.
$Options array An array of cache feature constants. - FEATURE_COMPRESS: Allows items to be internally compressed/decompressed (bool). - FEATURE_EXPIRY: Allows items to autoexpire (seconds). - FEATURE_NOPREFIX: Allows disabling usage of key prefix (bool). - FEATURE_FORCEPREFIX: Allows forcing alternate key prefix (string). - FEATURE_FALLBACK: Allows querying DB for missing keys, or firing a callback (see Gdn_Cache->Fallback).
return boolean true on success or false on failure.
    public abstract function store($Key, $Value, $Options = array());