original_string: public function type($key)
  	{
  		if (Str::endsWith($key, ':queued')) {
  			$key = str_replace(':queued', '', $key);
  		}
  
  		return $this->database->type($key);
  	}
code: public function type($key)
  	{
  		if (Str::endsWith($key, ':queued')) {
  			$key = str_replace(':queued', '', $key);
  		}
  
  		return $this->database->type($key);
  	}
code_tokens: public function type ( $ key ) { if ( Str :: endsWith ( $ key , ':queued' ) ) { $ key = str_replace ( ':queued' , '' , $ key ) ; } return $ this -> database -> type ( $ key ) ; }
docstring: Returns the type of a Redis key.
  
  @param  string  $key
  @return string
docstring_tokens: Returns the type of a Redis key .