Saves the value of a PHP variable in the cache.
public set ( string $entryIdentifier, string $string, array $tags = [], integer $lifetime = null ) : void | ||
$entryIdentifier | string | An identifier used for this cache entry |
$string | string | The variable to cache |
$tags | array | Tags to associate with this cache entry |
$lifetime | integer | Lifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited lifetime. |
return | void |