Lines Matching refs:redis
25 protected $redis;
38 * @param Predis $redis An instantiated and connected redis client
39 * @param string $key The key to store the token under in redis
40 * @param string $stateKey The key to store the state under in redis.
42 public function __construct(Predis $redis, $key, $stateKey)
44 $this->redis = $redis;
57 throw new TokenNotFoundException('Token not found in redis');
64 $val = $this->redis->hget($this->key, $service);
75 $this->redis->hset($this->key, $service, serialize($token));
93 return $this->redis->hexists($this->key, $service);
101 $this->redis->hdel($this->key, $service);
116 // redis
117 $keys = $this->redis->hkeys($this->key);
121 $this->redis->pipeline(
139 throw new AuthorizationStateNotFoundException('State not found in redis');
146 $val = $this->redis->hget($this->stateKey, $service);
157 $this->redis->hset($this->stateKey, $service, $state);
175 return $this->redis->hexists($this->stateKey, $service);
183 $this->redis->hdel($this->stateKey, $service);
198 // redis
199 $keys = $this->redis->hkeys($this->stateKey);
203 $this->redis->pipeline(
216 * @return Predis $redis
220 return $this->redis;