Permalink
Browse files

Add aliases for hash commands

  • Loading branch information...
1 parent d6c4c89 commit cf5e01fb26fe0fe1627aada9801a126c64b71410 @akahn committed Mar 28, 2010
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/redis/client.rb
View
@@ -115,7 +115,15 @@ class Client
"zset_delete" => "zrem",
"zset_score" => "zscore",
"zset_incr_by" => "zincrby",
- "zset_increment_by" => "zincrby"
+ "zset_increment_by" => "zincrby",
+ "hash_set" => "hset",
+ "hash_get" => "hget",
+ "hash_delete" => "hdel",
+ "hash_length" => "hlen",
+ "hash_keys" => "hkeys",
+ "hash_values" => "hvals",
+ "hash_key?" => "hkeyexists",
+ "hash_get_all" => "hgetall"
}
DISABLED_COMMANDS = {

0 comments on commit cf5e01f

Please sign in to comment.