Beispiel #1
0
 /**
  * @param $key
  * @param array $keyValue
  * @param null $ttl
  * @return bool
  */
 public function set($key, $keyValue, $ttl = null)
 {
     $ok = $this->client->hMset($key, $keyValue);
     if ($ok and $ttl) {
         $this->expire($key, $ttl);
     }
     return $ok;
 }