From de4b2848e071e50764f25dab1bce6b59b8e3f161 Mon Sep 17 00:00:00 2001 From: Sergey Nikitin Date: Wed, 8 Jul 2015 10:30:23 +0300 Subject: [PATCH] Changed some comments and docs in DictCacheBackend All changes are based on comments from Ie3e6c8a3671bc28bfd6967e8758c1419c3c8d501 TrivialFix Co-Authored-By: Pavel Kholkin Change-Id: I2fb44c736d3c15edab5c41ba99e73daed38f7258 --- doc/source/api.rst | 6 +++--- oslo_cache/backends/dictionary.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/source/api.rst b/doc/source/api.rst index ab0750ee..0e003fda 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -8,6 +8,9 @@ .. automodule:: oslo_cache.exception :members: +.. automodule:: oslo_cache.backends.dictionary + :members: + .. automodule:: oslo_cache.backends.memcache_pool :members: @@ -16,6 +19,3 @@ .. automodule:: oslo_cache.backends.noop :members: - -.. automodule:: oslo_cache.backends.dictionary - :members: diff --git a/oslo_cache/backends/dictionary.py b/oslo_cache/backends/dictionary.py index 2c50e47b..a37091b2 100644 --- a/oslo_cache/backends/dictionary.py +++ b/oslo_cache/backends/dictionary.py @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -"""dogpile.cache backend that uses dictionary as a storage""" +"""dogpile.cache backend that uses dictionary for storage""" from dogpile.cache import api from oslo_utils import timeutils @@ -32,9 +32,9 @@ class DictCacheBackend(api.CacheBackend): Arguments accepted in the arguments dictionary: :param expiration_time: interval in seconds to indicate maximum - time-to-live value. This parameter is common for a single backend - instance. Default expiration_time value is 0, that means that all keys - have infinite time-to-live value. + time-to-live value for each key in DictCacheBackend. + Default expiration_time value is 0, that means that all keys have + infinite time-to-live value. :type expiration_time: real """