Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | prep for 0.4 | Chris McDonough | 2011-09-04 | 3 | -12/+10 |
| | |||||
* | add py3 trove classifier | Chris McDonough | 2011-08-16 | 1 | -0/+1 |
| | |||||
* | prep for merge | Chris McDonough | 2011-08-16 | 5 | -3/+47 |
| | |||||
* | Updated CHANGES.txt and signed contributor agreement. | Joel Bohman | 2011-08-16 | 2 | -0/+2 |
| | |||||
* | Added Python 3 support. | Joel Bohman | 2011-08-16 | 1 | -1/+5 |
| | |||||
* | Add (and sign) contributor agreement. | Tres Seaver | 2011-02-25 | 1 | -0/+106 |
| | |||||
* | moved from svn | Chris McDonough | 2011-02-25 | 4 | -281/+22 |
| | |||||
* | Normalize nosetests. | Chris McDonough | 2010-03-03 | 1 | -1/+2 |
| | |||||
* | Prep for 0.3. | Chris McDonough | 2009-06-16 | 2 | -1/+6 |
| | |||||
* | Add a thread lock around clear logic. | Chris McDonough | 2009-06-16 | 1 | -7/+11 |
| | |||||
* | Prep for 0.2. | Chris McDonough | 2009-06-15 | 1 | -15/+8 |
| | |||||
* | Add a clear method; prep for 0.2. | Chris McDonough | 2009-06-15 | 3 | -5/+9 |
| | |||||
* | To dev. | Chris McDonough | 2009-06-14 | 2 | -2/+7 |
| | |||||
* | Ignore dist. | Chris McDonough | 2009-06-14 | 0 | -0/+0 |
| | |||||
* | Break out the BFG lru cache implementation into a shareable package. | Chris McDonough | 2009-06-14 | 10 | -0/+623 |