module Stal
Defined in:
stal.crstal/version.cr
Constant Summary
-
COMMANDS =
{"SDIFF" => "SDIFFSTORE", "SINTER" => "SINTERSTORE", "SUNION" => "SUNIONSTORE"}
-
VERSION =
"0.1.0"
Class Method Summary
- .command(term)
-
.compile(expr : Array, ids, ops)
Compile expression into Redis commands
-
.convert(item : String, ids, ops)
Identity function for item.
-
.convert(expr : Array, ids, ops)
Transform :SDIFF, :SINTER and :SUNION commands into SDIFFSTORE, SINTERSTORE and SUNIONSTORE.
-
.explain(expr : Array)
Return commands without any wrapping added by
.solve
- .process(expr : Array)
-
.solve(c, expr : Array)
Evaluate expression
expr
in the Redis clientc
.
Class Method Detail
def self.convert(expr : Array, ids, ops)
#
Transform :SDIFF, :SINTER and :SUNION commands into SDIFFSTORE, SINTERSTORE and SUNIONSTORE.