@@ 168-176 (lines=9) @@ | ||
165 | * @param string $key |
|
166 | * @return string |
|
167 | */ |
|
168 | public function get($key) |
|
169 | { |
|
170 | $this->init(); |
|
171 | $result = $this->driver->get($key); |
|
172 | if ($this->driver instanceof Client) { |
|
173 | $result = $result === null ? false : $result; |
|
174 | } |
|
175 | return $result; |
|
176 | } |
|
177 | ||
178 | public function del(...$key) |
|
179 | { |
|
@@ 206-214 (lines=9) @@ | ||
203 | * @param string $field |
|
204 | * @return string|boolean false if hash field is not set |
|
205 | */ |
|
206 | public function hget($key, $field) |
|
207 | { |
|
208 | $this->init(); |
|
209 | $result = $this->driver->hget($key, $field); |
|
210 | if ($this->driver instanceof Client) { |
|
211 | $result = $result === null ? false : $result; |
|
212 | } |
|
213 | return $result; |
|
214 | } |
|
215 | ||
216 | /** |
|
217 | * Delete one or more hash fields, returns number of deleted fields |