• antirez's avatar
    freeMemoryIfNeeded(): improve code and lazyfree handling. · a8cbc3ec
    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.
    a8cbc3ec
evict.c 22.8 KB