mirror of
https://github.com/fluencelabs/redis
synced 2025-06-21 13:01:32 +00:00
dict.c: added macros in dict.h to set signed and unsigned 64 bit values directly inside the hash entry without using additional memory.
This commit is contained in:
@ -274,7 +274,7 @@ int dictAdd(dict *d, void *key, void *val)
|
||||
* mainly in order to store non-pointers inside the hash value, example:
|
||||
*
|
||||
* entry = dictAddRaw(dict,mykey);
|
||||
* if (entry != NULL) dictSetValSignedInteger(entry,1000);
|
||||
* if (entry != NULL) dictSetSignedIntegerVal(entry,1000);
|
||||
*
|
||||
* Return values:
|
||||
*
|
||||
|
Reference in New Issue
Block a user