Skip to content

Commit a3089b7

Browse files
committed
Improve on documentation
1 parent 48e39fb commit a3089b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/redis/commands/hashes.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ def hscan_each(key, **options, &block)
257257
# Sets the time to live in seconds for one or more fields.
258258
#
259259
# @example
260-
# redis.hexpire("hash", 10, "f1", "f2") # => [1, 1]
260+
# redis.hset("hash", "f1", "v1")
261+
# redis.hexpire("hash", 10, "f1", "f2") # => [1, -2]
261262
#
262263
# @param [String] key
263264
# @param [Integer] ttl

0 commit comments

Comments
 (0)