lib/redis/commands/hashes.rb in redis-5.2.0 vs lib/redis/commands/hashes.rb in redis-5.3.0

- old
+ new

@@ -220,10 +220,12 @@ # @param [Hash] options # - `:match => String`: only return keys matching the pattern # - `:count => Integer`: return count keys at most per iteration # # @return [String, Array<[String, String]>] the next cursor and all found keys + # + # See the [Redis Server HSCAN documentation](https://redis.io/docs/latest/commands/hscan/) for further details def hscan(key, cursor, **options) _scan(:hscan, cursor, [key], **options) do |reply| [reply[0], reply[1].each_slice(2).to_a] end end @@ -237,9 +239,11 @@ # @param [Hash] options # - `:match => String`: only return keys matching the pattern # - `:count => Integer`: return count keys at most per iteration # # @return [Enumerator] an enumerator for all found keys + # + # See the [Redis Server HSCAN documentation](https://redis.io/docs/latest/commands/hscan/) for further details def hscan_each(key, **options, &block) return to_enum(:hscan_each, key, **options) unless block_given? cursor = 0 loop do