private function incrementOrDecrement($key, $value, $direction = '+') { $target = $this->kvdb->get($this->prefix . $key); $direction == '-' ? $target -= $value : ($target += $value); $this->kvdb->set($this->prefix . $key, $target); return $target; }