1. 01 Jun, 2017 1 commit
  2. 09 May, 2017 1 commit
  3. 21 Feb, 2017 1 commit
    • 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
  4. 20 Jul, 2016 2 commits
  5. 18 Jul, 2016 3 commits
  6. 15 Jul, 2016 1 commit
  7. 13 Jul, 2016 1 commit
    • antirez's avatar
      LRU: Make cross-database choices for eviction. · e423f76e
      antirez authored
      The LRU eviction code used to make local choices: for each DB visited it
      selected the best key to evict. This was repeated for each DB. However
      this means that there could be DBs with very frequently accessed keys
      that are targeted by the LRU algorithm while there were other DBs with
      many better candidates to expire.
      
      This commit attempts to fix this problem for the LRU policy. However the
      TTL policy is still not fixed by this commit. The TTL policy will be
      fixed in a successive commit.
      
      This is an initial (partial because of TTL policy) fix for issue #2647.
      e423f76e
  8. 12 Jul, 2016 3 commits
  9. 11 Jul, 2016 1 commit
    • antirez's avatar
      Remove useless memmove() from freeMemoryIfNeeded(). · 382991f8
      antirez authored
      We start from the end of the pool to the initial item, zero-ing
      every entry we use or every ghost entry, there is nothing to memmove
      since to the right everything should be already set to NULL.
      382991f8
  10. 06 Jul, 2016 1 commit