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
- Redis::Commands::Hash
- Redis::Commands::List
- Redis::Commands::Set
- Redis::Commands::SortedSet
- Redis::Commands::Stream
Defined in:
lib/redis/src/commands.crlib/redis/src/commands/hash.cr
ext/redis.cr
Instance Method Summary
-
#del(keys : Enumerable(String))
Delete all specified keys and return the number of keys deleted.
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