Skip to content
Snippets Groups Projects
  1. Jan 30, 2019
  2. Jan 29, 2019
  3. Jan 23, 2019
  4. Jan 11, 2019
  5. Jan 09, 2019
  6. Jan 05, 2019
  7. Dec 22, 2018
  8. Dec 20, 2018
  9. Dec 17, 2018
  10. Dec 15, 2018
  11. Dec 11, 2018
  12. Dec 03, 2018
  13. Nov 16, 2018
  14. Nov 15, 2018
  15. Nov 08, 2018
  16. Nov 03, 2018
  17. Nov 02, 2018
  18. Nov 01, 2018
  19. Oct 10, 2018
  20. Jul 30, 2018
  21. 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
Loading