diff options
author | antirez <antirez@gmail.com> | 2015-02-06 15:48:42 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-02-11 10:52:27 +0100 |
commit | 5792a217f85633225209557d952ad2fa6a3fa0c0 (patch) | |
tree | 79c7a4af349f314521bf5c5cf2e739108252659f /src/dict.h | |
parent | f25fdd6246f01b6ee3c0ce557e2911bc8c068518 (diff) | |
download | redis-5792a217f85633225209557d952ad2fa6a3fa0c0.tar.gz |
dict.c: add dictGetSomeKeys(), specialized for eviction.
Diffstat (limited to 'src/dict.h')
-rw-r--r-- | src/dict.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dict.h b/src/dict.h index 7421078f8..5959a57b9 100644 --- a/src/dict.h +++ b/src/dict.h @@ -164,6 +164,7 @@ dictIterator *dictGetSafeIterator(dict *d); dictEntry *dictNext(dictIterator *iter); void dictReleaseIterator(dictIterator *iter); dictEntry *dictGetRandomKey(dict *d); +unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count); unsigned int dictGetRandomKeys(dict *d, dictEntry **des, unsigned int count); void dictPrintStats(dict *d); unsigned int dictGenHashFunction(const void *key, int len); |