diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2012-07-09 01:00:26 -0700 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-10-25 10:49:48 +0200 |
commit | 7f490b197ffbb27f0c655acb9aaf4adaa698d978 (patch) | |
tree | 9fb4f07ae5b0a7036f21559d50f47622e718e32a /src/dict.h | |
parent | 85f52ebcd85341485d3286b7f99cd03576abae1e (diff) | |
download | redis-7f490b197ffbb27f0c655acb9aaf4adaa698d978.tar.gz |
Add SCAN command
Diffstat (limited to 'src/dict.h')
-rw-r--r-- | src/dict.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dict.h b/src/dict.h index 4d750ae85..11e1b97ee 100644 --- a/src/dict.h +++ b/src/dict.h @@ -91,6 +91,8 @@ typedef struct dictIterator { long long fingerprint; /* unsafe iterator fingerprint for misuse detection */ } dictIterator; +typedef void (dictScanFunction)(void *privdata, const dictEntry *de); + /* This is the initial size of every hash table */ #define DICT_HT_INITIAL_SIZE 4 @@ -165,6 +167,7 @@ int dictRehash(dict *d, int n); int dictRehashMilliseconds(dict *d, int ms); void dictSetHashFunctionSeed(unsigned int initval); unsigned int dictGetHashFunctionSeed(void); +unsigned long dictScan(dict *d, unsigned long v, dictScanFunction *fn, void *privdata); /* Hash table types */ extern dictType dictTypeHeapStringCopyKey; |