module Redis::Commands

Overview

All Redis commands are defined in this module. Any paradigm that needs to use these commands simply overrides run, which takes a single command object, which must be an Enumerable.

TODO Add more Redis commands from https://redis.io/commands

Included Modules

Defined in:

lib/redis/src/commands.cr
lib/redis/src/commands/hash.cr
ext/redis.cr

Instance Method Summary

Instance Method Detail

def del(keys : Enumerable(String)) #

Delete all specified keys and return the number of keys deleted.

redis.set "foo", "12"
redis.del ["foo", "bar"] # => 1
redis.del ["foo", "bar"] # => 0

[View source]