@@ -146,9 +146,9 @@ def pruning?
146146 # cache.write("baz", 5)
147147 # cache.increment("baz") # => 6
148148 #
149- def increment ( name , amount = 1 , options = nil )
149+ def increment ( name , amount = 1 , ** options )
150150 instrument ( :increment , name , amount : amount ) do
151- modify_value ( name , amount , options )
151+ modify_value ( name , amount , ** options )
152152 end
153153 end
154154
@@ -163,9 +163,9 @@ def increment(name, amount = 1, options = nil)
163163 # cache.write("baz", 5)
164164 # cache.decrement("baz") # => 4
165165 #
166- def decrement ( name , amount = 1 , options = nil )
166+ def decrement ( name , amount = 1 , ** options )
167167 instrument ( :decrement , name , amount : amount ) do
168- modify_value ( name , -amount , options )
168+ modify_value ( name , -amount , ** options )
169169 end
170170 end
171171
@@ -238,7 +238,7 @@ def delete_entry(key, **options)
238238
239239 # Modifies the amount of an integer value that is stored in the cache.
240240 # If the key is not found it is created and set to +amount+.
241- def modify_value ( name , amount , options )
241+ def modify_value ( name , amount , ** options )
242242 options = merged_options ( options )
243243 key = normalize_key ( name , options )
244244 version = normalize_version ( name , options )
0 commit comments