Saves data in the cache.
public set ( string $entryIdentifier, mixed $data, array $tags = [], integer $lifetime = null ) : void | ||
$entryIdentifier | string | Something which identifies the data - depends on concrete cache |
$data | mixed | The data to cache - also depends on the concrete cache implementation |
$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. |
Результат | void |