• antirez's avatar
    freeMemoryIfNeeded(): improve code and lazyfree handling. · cd90389b
    antirez authored
    1. Refactor memory overhead computation into a function.
    2. Every 10 keys evicted, check if memory usage already reached
       the target value directly, since we otherwise don't count all
       the memory reclaimed by the background thread right now.
    cd90389b
evict.c 22.8 KB