Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Prep 0.6 release.0.6 | Tres Seaver | 2012-07-12 | 2 | -3/+3 |
| | |||||
* | Changelog for CacheMaker. | Tres Seaver | 2012-07-05 | 1 | -0/+3 |
| | |||||
* | Tidy. | Tres Seaver | 2012-07-05 | 1 | -4/+2 |
| | | | | Drop unused re-bind of 'range'. | ||||
* | Tidy. | Tres Seaver | 2012-07-05 | 1 | -2/+2 |
| | |||||
* | Allow 'clear' to take multiple names. | Tres Seaver | 2012-07-05 | 2 | -9/+24 |
| | |||||
* | Coverage for single-name clear. | Tres Seaver | 2012-07-05 | 1 | -15/+28 |
| | |||||
* | Let Python marshal args for us. | Tres Seaver | 2012-07-05 | 1 | -21/+22 |
| | |||||
* | Code clarity. | Tres Seaver | 2012-07-05 | 1 | -28/+31 |
| | |||||
* | Avoid artificial default. | Tres Seaver | 2012-07-05 | 1 | -14/+12 |
| | | | | get() returns None on a miss, which is fine for our purposes. | ||||
* | Moar PEP8. | Tres Seaver | 2012-07-05 | 1 | -34/+40 |
| | | | | Docstring cleanup. | ||||
* | Coverage. | Tres Seaver | 2012-07-05 | 1 | -1/+1 |
| | | | | Don't bother trying to simulate a uuid4() collision. | ||||
* | Fix Python 3.2 compatibility. | Tres Seaver | 2012-07-05 | 1 | -1/+1 |
| | |||||
* | Fix Python 2.6 compatibility. | Tres Seaver | 2012-07-05 | 1 | -4/+2 |
| | |||||
* | Normalize contruction of CUT. | Tres Seaver | 2012-07-05 | 1 | -16/+22 |
| | | | | Avoid use of instance attrs on TestCases. | ||||
* | PEP8: moar ws cleanup. | Tres Seaver | 2012-07-05 | 1 | -20/+20 |
| | |||||
* | PEP8: ws cleanup. | Tres Seaver | 2012-07-05 | 1 | -8/+11 |
| | |||||
* | Adding CacheMaker with(tests + docs) | julien tayon | 2012-07-04 | 5 | -0/+178 |
| | | | | Code coverage can't reach L324 | ||||
* | Note statistics changes. | Tres Seaver | 2012-06-11 | 1 | -0/+3 |
| | |||||
* | Pull mness-statistics branch. | Tres Seaver | 2012-06-11 | 3 | -2/+67 |
|\ | |||||
| * | added cache statitics | Jeremiah Ness | 2012-06-06 | 3 | -2/+67 |
| | | | | | | | | | | | | | | - cache.lookups # number of calls to the get method - cache.hits # number of times a call to get found an object - cache.misses # number of times a call to get did not find an object - cahce.evictions # number of times a object was evicted from cache | ||||
* | | Automate building Sphinx docs and testing example snippets via 'tox'. | Tres Seaver | 2012-06-11 | 2 | -2/+13 |
| | | |||||
* | | Add placeholders in empty docs directories. | Tres Seaver | 2012-06-11 | 2 | -0/+0 |
| | | |||||
* | | Add Sphinx documentation. | Tres Seaver | 2012-06-11 | 9 | -36/+685 |
| | | |||||
* | | Drop support for Python 2.5. | Tres Seaver | 2012-06-11 | 2 | -1/+4 |
| | | | | | | | | Note support for PyPy, added earlier. | ||||
* | | Typo. | Tres Seaver | 2012-06-11 | 1 | -1/+1 |
| | | |||||
* | | Add 'setup.py docs' alias. | Tres Seaver | 2012-06-11 | 3 | -0/+4 |
| | | | | | | | | Installs 'Sphinx' and dependencies. | ||||
* | | Add 'setup.py dev' alias. | Tres Seaver | 2012-06-11 | 3 | -1/+11 |
|/ | | | | Runs ``develop`` plus installs 'nose' and 'coverage'. | ||||
* | Try working around (pip-induced?) weirdness under tox. | Tres Seaver | 2012-03-24 | 1 | -1/+3 |
| | |||||
* | Add tox support. | Tres Seaver | 2012-03-24 | 2 | -36/+15 |
| | |||||
* | Note bugfix. | Tres Seaver | 2012-03-24 | 1 | -0/+6 |
| | |||||
* | Use lock-as-context manager to avoid race condition (issue #10). | Tres Seaver | 2012-03-24 | 1 | -17/+5 |
| | |||||
* | Prep 0.5 release.0.5 | Tres Seaver | 2012-03-24 | 2 | -4/+3 |
| | |||||
* | add trove classifiers, bump to 0.5dev | Chris McDonough | 2012-03-23 | 1 | -2/+9 |
| | |||||
* | dont test under jython; this is just a testing race | Chris McDonough | 2012-03-23 | 1 | -4/+15 |
| | |||||
* | prevent py32 from whining about assert_ | Chris McDonough | 2012-03-23 | 1 | -23/+24 |
| | |||||
* | ignore all env*/ | Chris McDonough | 2012-03-23 | 1 | -1/+1 |
| | |||||
* | Changelog, note post-0.4 stuff. | Tres Seaver | 2012-03-23 | 2 | -1/+22 |
| | |||||
* | Don't encourage running a unit test module as a script. | Tres Seaver | 2012-03-23 | 1 | -4/+0 |
| | | | | Instead, use 'setup.py test' or nosetests. | ||||
* | Reach full statement coverage with nose | Stefan Nordhausen | 2012-01-24 | 1 | -1/+1 |
| | | | | | | - chmod test.py from 755 to 644. Otherwise nosetests would not touch it and hence not reach much coverage. - Do not expect coverage for 'if __name__ == "__main__"...' | ||||
* | Make test cases run in Python <2.7 and 3.x again | Stefan Nordhausen | 2012-01-19 | 1 | -22/+26 |
| | | | | | - Remove usage of xrange() and iteritems() to make Python 3.x happy. - Remove usage of assertGreater/assertLess to make Python <2.7 happy. | ||||
* | Add "expiry" feature to the decorator | Stefan Nordhausen | 2012-01-18 | 2 | -6/+43 |
| | | | | | | - Decorator now accepts "timeout" parameter. - Unit tests check that decorator with timeout really forgets. - Fix incorrect import in ExpiringLRUCacheTests._getTargetClass(). | ||||
* | Add test class ExpiringLRUCacheTests to test expiry features | Stefan Nordhausen | 2012-01-18 | 1 | -2/+190 |
| | |||||
* | Add many more test cases and a cache-consistency check. | Stefan Nordhausen | 2012-01-17 | 1 | -0/+199 |
| | |||||
* | Add ExpiringLRUCache class. | Stefan Nordhausen | 2012-01-17 | 1 | -1/+129 |
| | | | | This is a copy & paste of LRUCache with expiry features added. | ||||
* | - Rename _marker to _MARKER to make pylint happy. | Stefan Nordhausen | 2012-01-16 | 1 | -9/+17 |
| | | | | | | - Remove _marker parameter from put() since it was unused. - Fix error message in ValueError. - Add docstrings. | ||||
* | If self.invalidate deletes an entry at just the wrong time, the "del | Stefan Nordhausen | 2012-01-16 | 1 | -25/+49 |
| | | | | | data[oldkey]" in put() could raise KeyError. Using pop() prevents this and has the side effect that the "if... :" is not needed any more. | ||||
* | __init__.py: | Stefan Nordhausen | 2012-01-13 | 2 | -26/+28 |
| | | | | | | | | | | | - Split self.clock into self.clock_refs and self.clock_keys - Define variables in __init__ to make pylint happy - self.maxpos now declared in __init__(), since clear() cannot change it. tests.py: - Adapt to the splitting of self.clock into self.clock_refs and self.clock_keys. | ||||
* | __init__.py: | Stefan Nordhausen | 2012-01-13 | 2 | -15/+41 |
| | | | | | | | | | | | | | - put() now checks if we already have the given key in cache. This prevents overwriting other existing items when put() on same item is called repeatedly. - Remove the "end" variable. It never terminated the loop, anyway, because the item at this position always had res==True. tests.py: - Adapt test case to accept the slightly changed eviction strategy. - Make the test runnable from the command line. - Add newlines for structuring, remove unneeded whitespace. | ||||
* | get() does not set self.hand anymore. | Stefan Nordhausen | 2012-01-13 | 1 | -4/+0 |
| | |||||
* | prep for 0.40.4 | Chris McDonough | 2011-09-04 | 1 | -1/+1 |
| |