File tree 4 files changed +8
-3
lines changed
4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 6
6
1.1.0 (2015-04-04)
7
7
++++++++++++++++++
8
8
9
+ * 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.
9
10
* Fixed typo in README, thanks to @zoidbergwill.
10
11
11
12
1.0.0 (2015-02-13)
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ Results of cached functions can be invalidated by outside forces. Let's demonstr
96
96
>> > monopoly.boardwalk
97
97
550
98
98
>> > # invalidate the cache
99
- >> > del monopoly[ ' boardwalk' ]
99
+ >> > del monopoly. boardwalk
100
100
>> > # request the boardwalk property again
101
101
>> > monopoly.boardwalk
102
102
600
@@ -186,6 +186,10 @@ Now use it:
186
186
3
187
187
>> > monopoly.dice
188
188
3
189
+ >> > # This cache clearing does not always work, see note below.
190
+ >> > del monopoly[' dice' ]
191
+ >> > monopoly.dice
192
+ 6
189
193
190
194
**Note: ** The ``ttl `` tools do not reliably allow the clearing of the cache. This
191
195
is why they are broken out into seperate tools. See https://github.com/pydanny/cached-property/issues/16.
Original file line number Diff line number Diff line change 2
2
3
3
__author__ = 'Daniel Greenfeld'
4
4
5
- __version__ = '1.0 .0'
5
+ __version__ = '1.1 .0'
6
6
__license__ = 'BSD'
7
7
8
8
from time import time
Original file line number Diff line number Diff line change 9
9
except ImportError :
10
10
from distutils .core import setup
11
11
12
- __version__ = '1.0 .0'
12
+ __version__ = '1.1 .0'
13
13
14
14
readme = open ('README.rst' ).read ()
15
15
history = open ('HISTORY.rst' ).read ().replace ('.. :changelog:' , '' )
You can’t perform that action at this time.
0 commit comments