summaryrefslogtreecommitdiff
path: root/src/redis-cli.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-06-15 13:14:57 +0200
committerantirez <antirez@gmail.com>2019-06-18 12:31:10 +0200
commite9bb30fd859ed4e9e3e6434207dedbc251086858 (patch)
tree0ac8972fefe6911dee8c7376e14c611fcc105e1c /src/redis-cli.c
parentfd0ee469ab165d0e005e9fe1fca1c4f5c604cd56 (diff)
downloadredis-new-keyspace.tar.gz
Experimental: new keyspace and expire algorithm.new-keyspace
This is an alpha quality implementation of a new keyspace representation and a new expire algorithm for Redis. This work is described here: https://gist.github.com/antirez/b2eb293819666ee104c7fcad71986eb7
Diffstat (limited to 'src/redis-cli.c')
-rw-r--r--src/redis-cli.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index e363a2795..a1f3f4010 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -1987,7 +1987,8 @@ typedef struct clusterManagerLink {
} clusterManagerLink;
static dictType clusterManagerDictType = {
- dictSdsHash, /* hash function */
+ dictSdsHash, /* lookup hash function */
+ dictSdsHash, /* stored hash function */
NULL, /* key dup */
NULL, /* val dup */
dictSdsKeyCompare, /* key compare */
@@ -1996,10 +1997,12 @@ static dictType clusterManagerDictType = {
};
static dictType clusterManagerLinkDictType = {
- dictSdsHash, /* hash function */
+ dictSdsHash, /* lookup hash function */
+ dictSdsHash, /* stored hash function */
NULL, /* key dup */
NULL, /* val dup */
- dictSdsKeyCompare, /* key compare */
+ dictSdsKeyCompare, /* lookup key compare */
+ dictSdsKeyCompare, /* stored key compare */
dictSdsDestructor, /* key destructor */
dictListDestructor /* val destructor */
};
@@ -6933,7 +6936,8 @@ void type_free(void* priv_data, void* val) {
}
static dictType typeinfoDictType = {
- dictSdsHash, /* hash function */
+ dictSdsHash, /* lookup hash function */
+ dictSdsHash, /* stored hash function */
NULL, /* key dup */
NULL, /* val dup */
dictSdsKeyCompare, /* key compare */