summaryrefslogtreecommitdiff
path: root/src/dict.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-11-08 16:57:20 +0100
committerantirez <antirez@gmail.com>2011-11-08 16:57:20 +0100
commit71a50956b1ff6b45b8265afa8e7e0264c465cec8 (patch)
tree489def63944b5bb36b367fb43f351151cb384f85 /src/dict.h
parent66d8818cb751ab23e70e82fc5ab1017399f49109 (diff)
downloadredis-71a50956b1ff6b45b8265afa8e7e0264c465cec8.tar.gz
dict.c: added two lower level methods for directly manipulating hash entries. This is useful in order to set 64 bit integers as values directly inside the hash entry (in order to save memory), without casting, and even in 32 bit builds.
Diffstat (limited to 'src/dict.h')
-rw-r--r--src/dict.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dict.h b/src/dict.h
index 31cd65646..23b1fc52e 100644
--- a/src/dict.h
+++ b/src/dict.h
@@ -133,7 +133,9 @@ typedef struct dictIterator {
dict *dictCreate(dictType *type, void *privDataPtr);
int dictExpand(dict *d, unsigned long size);
int dictAdd(dict *d, void *key, void *val);
+dictEntry *dictAddRaw(dict *d, void *key);
int dictReplace(dict *d, void *key, void *val);
+dictEntry *dictReplaceRaw(dict *d, void *key);
int dictDelete(dict *d, const void *key);
int dictDeleteNoFree(dict *d, const void *key);
void dictRelease(dict *d);