| @@ 99-107 (lines=9) @@ | ||
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| 99 | public function zScore(string $key, string $value) |
|
| 100 | { |
|
| 101 | try { |
|
| 102 | $score = $this->redis->zScore($key, $value); |
|
| 103 | } catch (\RedisException $e) { |
|
| 104 | throw new RedisException(); |
|
| 105 | } |
|
| 106 | return $score === null ? $score : intval($score); |
|
| 107 | } |
|
| 108 | ||
| 109 | public function del(string $key) |
|
| 110 | { |
|
| @@ 101-109 (lines=9) @@ | ||
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | public function zScore(string $key, string $value) |
|
| 102 | { |
|
| 103 | try { |
|
| 104 | $score = $this->client->zscore($key, $value); |
|
| 105 | } catch (PredisConnectionException $e) { |
|
| 106 | throw new RedisException(); |
|
| 107 | } |
|
| 108 | return $score === null ? $score : intval($score); |
|
| 109 | } |
|
| 110 | ||
| 111 | public function del(string $key) |
|
| 112 | { |
|