Mongolid\Util\CacheComponent::put PHP Метод

put() публичный Метод

Store an item in the cache for a given number of minutes.
public put ( string $key, mixed $value, float $minutes ) : void
$key string Cache key of the item.
$value mixed Value being stored in cache.
$minutes float Cache ttl.
Результат void
    public function put(string $key, $value, float $minutes)
    {
        $this->storage[$key] = $value;
        $this->ttl[$key] = $this->time() + 60 * $minutes;
    }