Skip to content
Snippets Groups Projects
  1. Mar 09, 2019
  2. Jan 30, 2019
  3. Dec 17, 2018
  4. Jul 24, 2018
    • Dan Fuchs's avatar
      Avoid using KEYS, continued (#172) · 8d260bff
      Dan Fuchs authored
      * Avoid using KEYS.
      
      * Check single keys, or patterns with `SCAN`
      
      Continues the work that @Tinche did in #149.
      
      * Add an arg, `check-single-keys` to get size and value with `TYPE`
      * Modify the behavior of `check-keys`
        * Get keys from globs with `SCAN` rather than `KEYS`
        * If a key doesn't have any glob characters in it, just add it to the
          list of things to check with `TYPE`
      
      I added an argument rather than decide `SCAN` vs `TYPE` based on the
      presence of glob characters because, technically, redis key names can
      contain glob characters, according to https://redis.io/topics/data-types-intro:
      
          Redis keys are binary safe, this means that you can use any binary
          sequence as a key, from a string like "foo" to the content of a JPEG
          file. The empty string is also a valid key.
      
      The only way to be able to check for key names with glob characters in
      them is by being able to explicitly specify keys that you don't want to
      glob for.
      8d260bff
  5. Jun 06, 2018
  6. May 28, 2018
  7. Mar 22, 2018
  8. Nov 25, 2017
  9. Oct 23, 2017
  10. Oct 16, 2017
  11. Sep 25, 2017
  12. Sep 22, 2017
  13. Sep 21, 2017
  14. Sep 20, 2017
  15. Aug 07, 2017
  16. Aug 01, 2017
  17. Apr 22, 2017
  18. Mar 07, 2017
  19. Dec 02, 2016
  20. Nov 24, 2016
  21. Oct 15, 2016
  22. Oct 11, 2016
  23. Sep 22, 2016
  24. Aug 22, 2016
  25. Jul 12, 2016
  26. Jul 11, 2016
  27. Apr 18, 2016
  28. Nov 12, 2015
Loading