module Stal

Defined in:

stal.cr
stal/version.cr

Constant Summary

COMMANDS = {"SDIFF" => "SDIFFSTORE", "SINTER" => "SINTERSTORE", "SUNION" => "SUNIONSTORE"}
VERSION = "0.1.0"

Class Method Summary

Class Method Detail

def self.command(term) #

[View source]
def self.compile(expr : Array, ids, ops) #

Compile expression into Redis commands


[View source]
def self.convert(item : String, ids, ops) #

Identity function for item.


[View source]
def self.convert(expr : Array, ids, ops) #

Transform :SDIFF, :SINTER and :SUNION commands into SDIFFSTORE, SINTERSTORE and SUNIONSTORE.


[View source]
def self.explain(expr : Array) #

Return commands without any wrapping added by .solve


[View source]
def self.process(expr : Array) #

[View source]
def self.solve(c, expr : Array) #

Evaluate expression expr in the Redis client c.


[View source]