Source

dogpile.cache-dict-config / dogpile / cache / api.py

Diff from to

File dogpile/cache/api.py

 class CachedValue(tuple):
     """Represent a value stored in the cache.
     
-    :class:.`CachedValue` is a two-tuple of
+    :class:`.CachedValue` is a two-tuple of
     ``(payload, metadata)``, where ``metadata``
     is dogpile.cache's tracking information (
     currently the creation time).  The metadata
     
     """
     payload = property(operator.itemgetter(0))
+    """Named accessor for the payload."""
+
     metadata = property(operator.itemgetter(1))
+    """Named accessor for the dogpile.cache metadata dictionary."""
 
     def __new__(cls, payload, metadata):
         return tuple.__new__(cls, (payload, metadata))