- * @param $key
- * @param $timeout int
- * @return bool
- */
- public function lock( $key, $timeout = 0 ) {
- return $this->client->lock( $this->encodeKey( $key ), $timeout );
- }
-
- /**
- * @param $key string
- * @return Mixed
- */
- public function unlock( $key ) {
- return $this->client->unlock( $this->encodeKey( $key ) );
- }
-
- /**
- * @param $key string
- * @param $value int
- * @return Mixed