Example #1
0
 /**
  * {@inheritDoc}
  */
 public function clearAllAuthorizationStates()
 {
     // memory
     $this->cachedStates = array();
     // redis
     $keys = $this->redis->hkeys($this->stateKey);
     $me = $this;
     // 5.3 compat
     // pipeline for performance
     $this->redis->pipeline(function ($pipe) use($keys, $me) {
         foreach ($keys as $k) {
             $pipe->hdel($me->getKey(), $k);
         }
     });
     // allow chaining
     return $this;
 }