Class: RediSearch::Client
- Inherits:
-
Object
- Object
- RediSearch::Client
- Defined in:
- lib/redi_search/client.rb,
lib/redi_search/client/response.rb
Defined Under Namespace
Classes: Response
Instance Method Summary collapse
- #call!(command, *params, skip_ft: false) ⇒ Object
-
#initialize(redis = Redis.new) ⇒ Client
constructor
A new instance of Client.
- #multi ⇒ Object
Constructor Details
#initialize(redis = Redis.new) ⇒ Client
Returns a new instance of Client.
7 8 9 10 |
# File 'lib/redi_search/client.rb', line 7 def initialize(redis = Redis.new) @redis = redis @pipeline = false end |
Instance Method Details
#call!(command, *params, skip_ft: false) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/redi_search/client.rb', line 12 def call!(command, *params, skip_ft: false) instrument(command.downcase, query: [command, params]) do command = "FT.#{command}" unless skip_ft send_command(command, *params) end end |