Cml\Cache\Redis::increment PHP 메소드

increment() 공개 메소드

自增
public increment ( mixed $key, integer $val = 1 ) : boolean
$key mixed 要自增的缓存的数据的key
$val integer 自增的进步值,默认为1
리턴 boolean
    public function increment($key, $val = 1)
    {
        return $this->hash($key)->incrBy($key, abs(intval($val)));
    }