• antirez's avatar
    Modules: dictionary API WIP #7: don't store the context. · 58ac1f8b
    antirez authored
    Storing the context is useless, because we can't really reuse that
    later. For instance in the API RM_DictNext() that returns a
    RedisModuleString for the next key iterated, the user should pass the
    new context, because we may run the keys of the dictionary in a
    different context of the one where the dictionary was created. Also the
    dictionary may be created without a context, but we may still demand
    automatic memory management for the returned strings while iterating.
    58ac1f8b
module.c 192 KB