* For now only the last argument gets integer encoded, so make sure that: 1) every multi bulk commands implemented will have the last arg that is indeed a value, and not used otherwise. 2) to explicitly call the function to encode the object in MSET and other commands where there are multiple "values".
* Man pages for MSET MSETNX and SRANDMEMBER.
* Hashes (HSET, HGET, HEXISTS, HLEN, ...).
+* ZSETs
+* An utility able to export an .rdb file into a text-only JSON dump, we can't live anymore without such a tool. Probably an extension to redis-cli.
After 1.1 todo
typedef struct zset {
dict *dict;
- tree *tree;
+ /* tree *tree; */
} zset;
struct sharedObjectsStruct {
* keys and radis objects as values (objects can hold SDS strings,
* lists, sets). */
+#if 0
static void dictVanillaFree(void *privdata, void *val)
{
DICT_NOTUSED(privdata);
zfree(val);
}
+#endif
static int sdsDictKeyCompare(void *privdata, const void *key1,
const void *key2)
NULL /* val destructor */
};
+#if 0
static dictType zsetDictType = {
dictEncObjHash, /* hash function */
NULL, /* key dup */
dictRedisObjectDestructor, /* key destructor */
dictVanillaFree /* val destructor */
};
+#endif
static dictType hashDictType = {
dictObjHash, /* hash function */
return createObject(REDIS_SET,d);
}
+#if 0
static robj *createZsetObject(void) {
dict *d = dictCreate(&zsetDictType,NULL);
if (!d) oom("dictCreate");
return createObject(REDIS_ZSET,d);
}
+#endif
static void freeStringObject(robj *o) {
if (o->encoding == REDIS_ENCODING_RAW) {
#elif defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
return (void*) uc->uc_mcontext->__ss.__eip;
#elif defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6)
- #ifdef _STRUCT_X86_THREAD_STATE64
+ #if defined(_STRUCT_X86_THREAD_STATE64) && !defined(__i386__)
return (void*) uc->uc_mcontext->__ss.__rip;
#else
return (void*) uc->uc_mcontext->__ss.__eip;