@@ -2626,6 +2626,23 @@ var _ = Describe("Commands", func() {
26262626			))
26272627		})
26282628
2629+ 		It ("should HStrLen" , func () {
2630+ 			hSet  :=  client .HSet (ctx , "hash" , "key" , "hello" )
2631+ 			Expect (hSet .Err ()).NotTo (HaveOccurred ())
2632+ 
2633+ 			hStrLen  :=  client .HStrLen (ctx , "hash" , "key" )
2634+ 			Expect (hStrLen .Err ()).NotTo (HaveOccurred ())
2635+ 			Expect (hStrLen .Val ()).To (Equal (int64 (len ("hello" ))))
2636+ 
2637+ 			nonHStrLen  :=  client .HStrLen (ctx , "hash" , "keyNon" )
2638+ 			Expect (hStrLen .Err ()).NotTo (HaveOccurred ())
2639+ 			Expect (nonHStrLen .Val ()).To (Equal (int64 (0 )))
2640+ 
2641+ 			hDel  :=  client .HDel (ctx , "hash" , "key" )
2642+ 			Expect (hDel .Err ()).NotTo (HaveOccurred ())
2643+ 			Expect (hDel .Val ()).To (Equal (int64 (1 )))
2644+ 		})
2645+ 
26292646		It ("should HExpire" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
26302647			SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26312648			res , err  :=  client .HExpire (ctx , "no_such_key" , 10 * time .Second , "field1" , "field2" , "field3" ).Result ()
@@ -2642,6 +2659,7 @@ var _ = Describe("Commands", func() {
26422659			Expect (res ).To (Equal ([]int64 {1 , 1 , - 2 }))
26432660		})
26442661
2662+ 
26452663		It ("should HPExpire" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
26462664			SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26472665			res , err  :=  client .HPExpire (ctx , "no_such_key" , 10 * time .Second , "field1" , "field2" , "field3" ).Result ()
0 commit comments