From: Daniel Greenfeld Date: Tue, 14 Apr 2015 16:35:28 +0000 (-0700) Subject: Bump for 1.1.0 X-Git-Tag: 1.1.0^0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cb0121b22a39326247379c6650780bcdadff746;p=cached-property.git Bump for 1.1.0 --- diff --git a/HISTORY.rst b/HISTORY.rst index 95a371a..ca6e3c2 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -6,6 +6,7 @@ History 1.1.0 (2015-04-04) ++++++++++++++++++ +* Regression: As the cache was not always clearing, we've broken out the time to expire feature to it's own set of specific tools. * Fixed typo in README, thanks to @zoidbergwill. 1.0.0 (2015-02-13) diff --git a/README.rst b/README.rst index c2d6daa..bdb9c51 100644 --- a/README.rst +++ b/README.rst @@ -96,7 +96,7 @@ Results of cached functions can be invalidated by outside forces. Let's demonstr >>> monopoly.boardwalk 550 >>> # invalidate the cache - >>> del monopoly['boardwalk'] + >>> del monopoly.boardwalk >>> # request the boardwalk property again >>> monopoly.boardwalk 600 @@ -186,6 +186,10 @@ Now use it: 3 >>> monopoly.dice 3 + >>> # This cache clearing does not always work, see note below. + >>> del monopoly['dice'] + >>> monopoly.dice + 6 **Note:** The ``ttl`` tools do not reliably allow the clearing of the cache. This is why they are broken out into seperate tools. See https://github.com/pydanny/cached-property/issues/16. diff --git a/cached_property.py b/cached_property.py index 48e615a..3547b43 100644 --- a/cached_property.py +++ b/cached_property.py @@ -2,7 +2,7 @@ __author__ = 'Daniel Greenfeld' __email__ = 'pydanny@gmail.com' -__version__ = '1.0.0' +__version__ = '1.1.0' __license__ = 'BSD' from time import time diff --git a/setup.py b/setup.py index 0de70e8..2a6bca4 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ try: except ImportError: from distutils.core import setup -__version__ = '1.0.0' +__version__ = '1.1.0' readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '')