summaryrefslogtreecommitdiff
path: root/dict.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2010-04-16 10:04:51 +0200
committerantirez <antirez@gmail.com>2010-04-16 10:04:51 +0200
commit58e1c9c143e9c5f108ca1863bdd61fc5e02dc968 (patch)
tree769a0072b3fa4d03b3b657c1d3575dbf01d64338 /dict.h
parentd4dd6556c3925ae26b1fce142158b3243eda39a7 (diff)
downloadredis-58e1c9c143e9c5f108ca1863bdd61fc5e02dc968.tar.gz
added dictFetchValue() to dict.c to make hash table API a bit less verbose in the common cases
Diffstat (limited to 'dict.h')
-rw-r--r--dict.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dict.h b/dict.h
index ba8f86951..30ace4db7 100644
--- a/dict.h
+++ b/dict.h
@@ -129,6 +129,7 @@ int dictDelete(dict *d, const void *key);
int dictDeleteNoFree(dict *d, const void *key);
void dictRelease(dict *d);
dictEntry * dictFind(dict *d, const void *key);
+void *dictFetchValue(dict *d, const void *key);
int dictResize(dict *d);
dictIterator *dictGetIterator(dict *d);
dictEntry *dictNext(dictIterator *iter);