summaryrefslogtreecommitdiff
path: root/CHANGES.rst
blob: 814beff07ffc5d56e16228c9effd13c941a305a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
Changelog
=========

0.8 (unreleased)
----------------

- TBD

0.7 (2017-09-06)
----------------

- Add ``CacheMaker.memoize`` to create named, unbounded caches.

- Add ``UnboundedCache``, backed by a dict.

- Add an ``ignore_unhashable_args`` option to ``lru_cache``:  if True, the
  cache will discard arguments which cannot be hashed, rather than raising
  a ``TypeError``.

- Expose cache object on the wrapped function, e.g. to allow extracting cache
  performance data easily (PR #20).

- Avoid crash when memoizing a ``functools.partial`` instance (PR #21).

- Add explicit support for Python3.4, 3.5, and 3.6.

- Drop support for Python 2.6 and 3.2.

0.6 (2012-07-12)
----------------

- Added a ``CacheMaker`` helper class:  a maker keeps references (by name)
  to the caches it creates, to permit them to be cleared.

- Added statistics to each cache, tracking lookups, hits, misses, and
  evictions.

- Automated building Sphinx docs and testing example snippets under ``tox``.

- Added Sphinx documentation.

- Dropped support for Python 2.5.

- Added support for PyPy.

- Added ``setup.py docs`` alias (installs ``Sphinx`` and dependencies).

- Added ``setup.py dev`` alias (runs ``develop`` plus installs ``nose``
  and ``coverage``).

- Added support for CI under supported Pythons using ``tox``.

- Bug: Remove potential race condition on lock in face of interrupts
  (Issue #10).

0.5 (2012-03-24)
----------------

- Feature: added a new "invalidate()" method to allow removal of items from
  the cache (issue #8).

- Bug: LRUCache.put() could take multiple seconds on large caches (Issue #7).

- Bug: LRUCache was not thread safe (Issue #6).

- Bug: LRUCache.clock would waste RAM (Issue #4).

- Bug: repeated pushing of an entry would remove other cache entries
  (Issue #3).

- Bug: LRUCache would evict entries even when not full (Issue #2).

0.4 (2011-09-04)
----------------

- Moved to GitHub (https://github.com/repoze/repoze.lru).

- Added Python 3.2 support.

- Python 2.4 no longer supported.

- Added tox.ini for easier testing.

0.3 (2009/06/16)
----------------

- Add a thread lock around ``clear`` logic.

0.2 (2009/06/15)
----------------

- Add a ``clear`` method.

0.1 (2009/06/14)
----------------

- Initial release.