applyDefaultParams( $params ); $this->client = new MemcachedClient( $params ); $this->client->set_servers( $params['servers'] ); $this->client->set_debug( $params['debug'] ); } public function setDebug( $debug ) { $this->client->set_debug( $debug ); } public function getMulti( array $keys, $flags = 0 ) { foreach ( $keys as $key ) { $this->validateKeyEncoding( $key ); } return $this->client->get_multi( $keys ); } public function incr( $key, $value = 1 ) { $this->validateKeyEncoding( $key ); return $this->client->incr( $key, $value ) ?? false; } public function decr( $key, $value = 1 ) { $this->validateKeyEncoding( $key ); return $this->client->decr( $key, $value ) ?? false; } }