Skip to content

Commit cb42c1a

Browse files
committed
Use proper documentation format (including type)
1 parent 3ec1762 commit cb42c1a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/redis.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def dump(key)
385385
# @param [String] key
386386
# @param [String] ttl
387387
# @param [String] serialized_value
388-
# @return `"OK"`
388+
# @return [String] `"OK"`
389389
def restore(key, ttl, serialized_value)
390390
synchronize do |client|
391391
client.call([:restore, key, ttl, serialized_value])
@@ -690,7 +690,7 @@ def set(key, value, options = {})
690690
# @param [String] key
691691
# @param [Fixnum] ttl
692692
# @param [String] value
693-
# @return `"OK"`
693+
# @return [String] `"OK"`
694694
def setex(key, ttl, value)
695695
synchronize do |client|
696696
client.call([:setex, key, ttl, value.to_s])
@@ -702,7 +702,7 @@ def setex(key, ttl, value)
702702
# @param [String] key
703703
# @param [Fixnum] ttl
704704
# @param [String] value
705-
# @return `"OK"`
705+
# @return [String] `"OK"`
706706
def psetex(key, ttl, value)
707707
synchronize do |client|
708708
client.call([:psetex, key, ttl, value.to_s])
@@ -727,7 +727,7 @@ def setnx(key, value)
727727
# # => "OK"
728728
#
729729
# @param [Array<String>] args array of keys and values
730-
# @return `"OK"`
730+
# @return [String] `"OK"`
731731
#
732732
# @see #mapped_mset
733733
def mset(*args)
@@ -743,7 +743,7 @@ def mset(*args)
743743
# # => "OK"
744744
#
745745
# @param [Hash] hash keys mapping to values
746-
# @return `"OK"`
746+
# @return [String] `"OK"`
747747
#
748748
# @see #mset
749749
def mapped_mset(hash)
@@ -1867,7 +1867,7 @@ def hsetnx(key, field, value)
18671867
#
18681868
# @param [String] key
18691869
# @param [Array<String>] attrs array of fields and values
1870-
# @return `"OK"`
1870+
# @return [String] `"OK"`
18711871
#
18721872
# @see #mapped_hmset
18731873
def hmset(key, *attrs)
@@ -1884,7 +1884,7 @@ def hmset(key, *attrs)
18841884
#
18851885
# @param [String] key
18861886
# @param [Hash] a non-empty hash with fields mapping to values
1887-
# @return `"OK"`
1887+
# @return [String] `"OK"`
18881888
#
18891889
# @see #hmset
18901890
def mapped_hmset(key, hash)
@@ -2207,7 +2207,7 @@ def exec
22072207
#
22082208
# Only call this method when `#multi` was called **without** a block.
22092209
#
2210-
# @return `"OK"`
2210+
# @return [String] `"OK"`
22112211
#
22122212
# @see #multi
22132213
# @see #exec

0 commit comments

Comments
 (0)