mirror of
https://github.com/fluencelabs/redis
synced 2025-06-20 20:46:31 +00:00
dict.c API names modified to be more coincise and consistent.
This commit is contained in:
@ -55,7 +55,7 @@ int hashTypeGet(robj *o, robj *key, robj **objval, unsigned char **v,
|
||||
} else {
|
||||
dictEntry *de = dictFind(o->ptr,key);
|
||||
if (de == NULL) return -1;
|
||||
*objval = dictGetEntryVal(de);
|
||||
*objval = dictGetVal(de);
|
||||
}
|
||||
return o->encoding;
|
||||
}
|
||||
@ -206,9 +206,9 @@ int hashTypeCurrent(hashTypeIterator *hi, int what, robj **objval, unsigned char
|
||||
}
|
||||
} else {
|
||||
if (what & REDIS_HASH_KEY)
|
||||
*objval = dictGetEntryKey(hi->de);
|
||||
*objval = dictGetKey(hi->de);
|
||||
else
|
||||
*objval = dictGetEntryVal(hi->de);
|
||||
*objval = dictGetVal(hi->de);
|
||||
}
|
||||
return hi->encoding;
|
||||
}
|
||||
|
Reference in New Issue
Block a user