diff options
author | antirez <antirez@gmail.com> | 2018-06-15 13:14:57 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-06-18 12:31:10 +0200 |
commit | e9bb30fd859ed4e9e3e6434207dedbc251086858 (patch) | |
tree | 0ac8972fefe6911dee8c7376e14c611fcc105e1c /src/config.c | |
parent | fd0ee469ab165d0e005e9fe1fca1c4f5c604cd56 (diff) | |
download | redis-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/config.c')
-rw-r--r-- | src/config.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c index 7f0e9af89..9e509b659 100644 --- a/src/config.c +++ b/src/config.c @@ -1650,19 +1650,23 @@ void dictListDestructor(void *privdata, void *val); void rewriteConfigSentinelOption(struct rewriteConfigState *state); dictType optionToLineDictType = { - dictSdsCaseHash, /* hash function */ + dictSdsCaseHash, /* lookup hash function */ + dictSdsCaseHash, /* store hash function */ NULL, /* key dup */ NULL, /* val dup */ - dictSdsKeyCaseCompare, /* key compare */ + dictSdsKeyCaseCompare, /* lookup key compare */ + dictSdsKeyCaseCompare, /* stored key compare */ dictSdsDestructor, /* key destructor */ dictListDestructor /* val destructor */ }; dictType optionSetDictType = { - dictSdsCaseHash, /* hash function */ + dictSdsCaseHash, /* lookup hash function */ + dictSdsCaseHash, /* store hash function */ NULL, /* key dup */ NULL, /* val dup */ - dictSdsKeyCaseCompare, /* key compare */ + dictSdsKeyCaseCompare, /* lookup key compare */ + dictSdsKeyCaseCompare, /* stored key compare */ dictSdsDestructor, /* key destructor */ NULL /* val destructor */ }; |