未验证 提交 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)
#
# 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)
raise NotImplementedError.new("#{self.class.name} does not support delete_matched")
end
......@@ -501,7 +501,7 @@ def delete_matched(matcher, options = nil)
#
# 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)
raise NotImplementedError.new("#{self.class.name} does not support increment")
end
......@@ -510,7 +510,7 @@ def increment(name, amount = 1, options = nil)
#
# 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)
raise NotImplementedError.new("#{self.class.name} does not support decrement")
end
......@@ -519,7 +519,7 @@ def decrement(name, amount = 1, options = nil)
#
# 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)
raise NotImplementedError.new("#{self.class.name} does not support cleanup")
end
......@@ -529,7 +529,7 @@ def cleanup(options = nil)
#
# 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)
raise NotImplementedError.new("#{self.class.name} does not support clear")
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册