Class: Redis::Commands::Search::HybridCursorQuery
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | lib/redis/commands/modules/search/hybrid.rb |
Overview
The WITHCURSOR clause for paging through FT.HYBRID results.
Class Method Summary
- .new(count: 0, max_idle: 0) ⇒ HybridCursorQuery constructor
Instance Method Summary
-
#build_args ⇒ Array<String>
Render the cursor arguments.
Constructor Details
.new(count: 0, max_idle: 0) ⇒ HybridCursorQuery
# File 'lib/redis/commands/modules/search/hybrid.rb', line 330
def initialize(count: 0, max_idle: 0) @count = count @max_idle = max_idle end
Instance Method Details
#build_args ⇒ Array<String>
Render the cursor arguments.
# File 'lib/redis/commands/modules/search/hybrid.rb', line 338
def build_args args = ["WITHCURSOR"] args.concat(["COUNT", @count.to_s]) if @count > 0 args.concat(["MAXIDLE", @max_idle.to_s]) if @max_idle > 0 args end