public function hincrby($collection, $key, $field, $by = 1) { $current = $this->hget($collection, $key, $field, 0); $newone = $current + $by; $this->hset($collection, $key, $field, $newone); return $newone; }