1. 08 Jun, 2018 1 commit
  2. 08 Nov, 2017 1 commit
  3. 04 May, 2016 1 commit
  4. 14 Jul, 2015 1 commit
    • antirez's avatar
      DEBUG HTSTATS <dbid> added. · 0f64080d
      antirez authored
      The command reports information about the hash table internal state
      representing the specified database ID.
      
      This can be used in order to investigate rehashings, memory usage issues
      and for other debugging purposes.
      0f64080d
  5. 27 Mar, 2015 2 commits
  6. 11 Feb, 2015 11 commits
  7. 23 Jan, 2015 1 commit
  8. 29 Sep, 2014 2 commits
    • Matt Stancliff's avatar
      Cleanup wording of dictScan() comment · ef5fc599
      Matt Stancliff authored
      Some language in the comment was difficult
      to understand, so this commit: clarifies wording, removes
      unnecessary words, and relocates some dependent clauses
      closer to what they actually describe.
      
      I also tried to break up longer chains of thought
      (if X, then Y, and Q, and also F, so obviously M)
      into more manageable chunks for ease of understanding.
      ef5fc599
    • Michael Parker's avatar
      Fix hash table size in comment for dictScan · fc8f7ec7
      Michael Parker authored
      Closes #1351
      fc8f7ec7
  9. 26 Aug, 2014 2 commits
  10. 18 Aug, 2014 1 commit
  11. 13 Aug, 2014 1 commit
  12. 20 Mar, 2014 1 commit
    • antirez's avatar
      Added dictGetRandomKeys() to dict.c: mass get random entries. · 5317f5e9
      antirez authored
      This new function is useful to get a number of random entries from an
      hash table when we just need to do some sampling without particularly
      good distribution.
      
      It just jumps at a random place of the hash table and returns the first
      N items encountered by scanning linearly.
      
      The main usefulness of this function is to speedup Redis internal
      sampling of the key space, for example for key eviction or expiry.
      5317f5e9
  13. 04 Mar, 2014 2 commits
  14. 10 Dec, 2013 1 commit
    • antirez's avatar
      dict.c: added optional callback to dictEmpty(). · 2eb781b3
      antirez authored
      Redis hash table implementation has many non-blocking features like
      incremental rehashing, however while deleting a large hash table there
      was no way to have a callback called to do some incremental work.
      
      This commit adds this support, as an optiona callback argument to
      dictEmpty() that is currently called at a fixed interval (one time every
      65k deletions).
      2eb781b3
  15. 05 Dec, 2013 1 commit
  16. 05 Nov, 2013 1 commit
  17. 28 Oct, 2013 1 commit
  18. 25 Oct, 2013 4 commits
  19. 20 Aug, 2013 1 commit
  20. 19 Aug, 2013 4 commits
    • antirez's avatar
      Revert "Fixed type in dict.c comment: 265 -> 256." · 00ddc350
      antirez authored
      This reverts commit 6253180a.
      00ddc350
    • antirez's avatar
      Fixed type in dict.c comment: 265 -> 256. · 6253180a
      antirez authored
      6253180a
    • antirez's avatar
      assert.h replaced with redisassert.h when appropriate. · 1c754084
      antirez authored
      Also a warning was suppressed by including unistd.h in redisassert.h
      (needed for _exit()).
      1c754084
    • antirez's avatar
      dictFingerprint() fingerprinting made more robust. · 905d4822
      antirez authored
      The previous hashing used the trivial algorithm of xoring the integers
      together. This is not optimal as it is very likely that different
      hash table setups will hash the same, for instance an hash table at the
      start of the rehashing process, and at the end, will have the same
      fingerprint.
      
      Now we hash N integers in a smarter way, by summing every integer to the
      previous hash, and taking the integer hashing again (see the code for
      further details). This way it is a lot less likely that we get a
      collision. Moreover this way of hashing explicitly protects from the
      same set of integers in a different order to hash to the same number.
      
      This commit is related to issue #1240.
      905d4822