parent::__construct( $params );
$params = $this->applyDefaultParams( $params );
- $this->client = new MWMemcached( $params );
+ $this->client = new MemcachedClient( $params );
$this->client->set_servers( $params['servers'] );
$this->client->set_debug( $params['debug'] );
}
public function incr( $key, $value = 1 ) {
$this->validateKeyEncoding( $key );
- return $this->client->incr( $key, $value );
+ return $this->client->incr( $key, $value ) ?? false;
}
public function decr( $key, $value = 1 ) {
$this->validateKeyEncoding( $key );
- return $this->client->decr( $key, $value );
+ return $this->client->decr( $key, $value ) ?? false;
}
}