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

Stores a value identified by a key into cache.
public set ( string $key, string $value, integer $ttl ) : void
$key string
$value string
$ttl integer
Результат void
Пример #1
0
 /**
  * @param string $key
  * @param mixed  $value
  * @param int    $ttl
  *
  * @return void
  */
 public function set($key, $value, $ttl)
 {
     $this->adapter->set($this->_prefix . $key, $this->serializer->serialize($value), $ttl);
 }