Esempio n. 1
0
 /**
  * Decrease a stored number
  *
  * @param string $key
  * @param int $step
  * @return int | bool
  */
 public function dec($key, $step = 1)
 {
     if (!$this->hasKey($key)) {
         return false;
     }
     return self::$cache->decrBy($this->getNamespace() . $key, $step);
 }