Example #1
0
 /**
  * Returns the type of a Redis key.
  *
  * @param  string  $key
  * @return string
  */
 public function type($key)
 {
     if (Str::endsWith($key, ':queued')) {
         $key = str_replace(':queued', '', $key);
     }
     return $this->database->type($key);
 }