• Yossi Gottlieb's avatar
    Add RM_TrimStringAllocation(). (#9540) · bebc7f84
    Yossi Gottlieb authored
    This commit makes it possible to explicitly trim the allocation of a
    RedisModuleString.
    
    Currently, Redis automatically trims strings that have been retained by
    a module command when it returns. However, this is not thread safe and
    may result with corruption in threaded modules.
    
    Supporting explicit trimming offers a backwards compatible workaround to
    this problem.
    bebc7f84
redismodule.h 73.2 KB