File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -918,6 +918,21 @@ def hgetall(key)
918
918
node_for ( key ) . hgetall ( key )
919
919
end
920
920
921
+ # Scan a hash
922
+ def hscan ( key , cursor , **options )
923
+ node_for ( key ) . hscan ( key , cursor , **options )
924
+ end
925
+
926
+ # Scan a hash and return an enumerator
927
+ def hscan_each ( key , **options , &block )
928
+ node_for ( key ) . hscan_each ( key , **options , &block )
929
+ end
930
+
931
+ # Get the length of the value stored in a hash field
932
+ def hstrlen ( key , field )
933
+ node_for ( key ) . hstrlen ( key , field )
934
+ end
935
+
921
936
# Post a message to a channel.
922
937
def publish ( channel , message )
923
938
node_for ( channel ) . publish ( channel , message )
Original file line number Diff line number Diff line change @@ -6,14 +6,6 @@ class TestDistributedCommandsOnHashes < Minitest::Test
6
6
include Helper ::Distributed
7
7
include Lint ::Hashes
8
8
9
- def test_hscan
10
- # Not implemented yet
11
- end
12
-
13
- def test_hstrlen
14
- # Not implemented yet
15
- end
16
-
17
9
def test_mapped_hmget_in_a_pipeline_returns_hash
18
10
assert_raises ( Redis ::Distributed ::CannotDistribute ) do
19
11
super
You can’t perform that action at this time.
0 commit comments