Skip to content
Snippets Groups Projects
Select Git revision
  • oh_fix_missing_metrics
  • master default
  • oh_fix_gofmt
  • oh_refactor_and_tests
  • oh_update_dep_and_run_dep_prune
  • oh_fix_build_instructions
  • oh_cluster_tests
  • oh_couple_of_tweaks
  • v0.32.0
  • v0.31.0
  • v0.30.0
  • v0.29.0
  • v0.28.0
  • v0.27.0
  • v0.26.0
  • v0.25.0
  • v0.24.0
  • v0.23.0
  • v0.22.1
  • v0.22.0
  • v0.21.2
  • v0.21.1
  • v0.21.0
  • v0.20.2
  • v0.20.1
  • v0.20.0
  • v0.19.1
  • v0.19.0
28 results

.gitignore

  • Dan Fuchs's avatar
    8d260bff
    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
    History
    Avoid using KEYS, continued (#172)
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.