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/latency.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/latency.c')
-rw-r--r-- | src/latency.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/latency.c b/src/latency.c index 33aa1245b..072b24ca6 100644 --- a/src/latency.c +++ b/src/latency.c @@ -48,10 +48,12 @@ uint64_t dictStringHash(const void *key) { void dictVanillaFree(void *privdata, void *val); dictType latencyTimeSeriesDictType = { - dictStringHash, /* hash function */ + dictStringHash, /* lookup hash function */ + dictStringHash, /* stored hash function */ NULL, /* key dup */ NULL, /* val dup */ - dictStringKeyCompare, /* key compare */ + dictStringKeyCompare, /* lookup key compare */ + dictStringKeyCompare, /* stored key compare */ dictVanillaFree, /* key destructor */ dictVanillaFree /* val destructor */ }; |