Exemple #1
0
 /**
  * Fetch all the queues inside the 'queues' namespace with the delayed and
  * reserved.
  *
  * @return \Illuminate\Support\Collection
  */
 public function getAll()
 {
     $collection = new Collection();
     $keys = $this->database->keys($this->namespace . ':*');
     foreach ($keys as $key) {
         list($namespace, $name) = explode(':', $key);
         if (!$collection->has($name)) {
             $collection->put($name, $this->get($name));
         }
     }
     return $collection;
 }
 /**
  * @param $group
  */
 protected function deleteCacheGroup($group)
 {
     $keys = $this->redis->keys($group . '*');
     if (!empty($keys)) {
         $this->redis->del($keys);
     }
 }