未验证 提交 2c33932e 编写于 作者: X Xavier Noria 提交者: GitHub

Merge pull request #35536 from alexander-lazarov/improve-cache-docs

Improve wording in cache documentation
...@@ -492,7 +492,7 @@ def exist?(name, options = nil) ...@@ -492,7 +492,7 @@ def exist?(name, options = nil)
# #
# Options are passed to the underlying cache implementation. # Options are passed to the underlying cache implementation.
# #
# All implementations may not support this method. # Some implementations may not support this method.
def delete_matched(matcher, options = nil) def delete_matched(matcher, options = nil)
raise NotImplementedError.new("#{self.class.name} does not support delete_matched") raise NotImplementedError.new("#{self.class.name} does not support delete_matched")
end end
...@@ -501,7 +501,7 @@ def delete_matched(matcher, options = nil) ...@@ -501,7 +501,7 @@ def delete_matched(matcher, options = nil)
# #
# Options are passed to the underlying cache implementation. # Options are passed to the underlying cache implementation.
# #
# All implementations may not support this method. # Some implementations may not support this method.
def increment(name, amount = 1, options = nil) def increment(name, amount = 1, options = nil)
raise NotImplementedError.new("#{self.class.name} does not support increment") raise NotImplementedError.new("#{self.class.name} does not support increment")
end end
...@@ -510,7 +510,7 @@ def increment(name, amount = 1, options = nil) ...@@ -510,7 +510,7 @@ def increment(name, amount = 1, options = nil)
# #
# Options are passed to the underlying cache implementation. # Options are passed to the underlying cache implementation.
# #
# All implementations may not support this method. # Some implementations may not support this method.
def decrement(name, amount = 1, options = nil) def decrement(name, amount = 1, options = nil)
raise NotImplementedError.new("#{self.class.name} does not support decrement") raise NotImplementedError.new("#{self.class.name} does not support decrement")
end end
...@@ -519,7 +519,7 @@ def decrement(name, amount = 1, options = nil) ...@@ -519,7 +519,7 @@ def decrement(name, amount = 1, options = nil)
# #
# Options are passed to the underlying cache implementation. # Options are passed to the underlying cache implementation.
# #
# All implementations may not support this method. # Some implementations may not support this method.
def cleanup(options = nil) def cleanup(options = nil)
raise NotImplementedError.new("#{self.class.name} does not support cleanup") raise NotImplementedError.new("#{self.class.name} does not support cleanup")
end end
...@@ -529,7 +529,7 @@ def cleanup(options = nil) ...@@ -529,7 +529,7 @@ def cleanup(options = nil)
# #
# The options hash is passed to the underlying cache implementation. # The options hash is passed to the underlying cache implementation.
# #
# All implementations may not support this method. # Some implementations may not support this method.
def clear(options = nil) def clear(options = nil)
raise NotImplementedError.new("#{self.class.name} does not support clear") raise NotImplementedError.new("#{self.class.name} does not support clear")
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册