summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Adding CacheMaker with(tests + docs)julien tayon2012-07-045-0/+178
| | | | Code coverage can't reach L324
* Note statistics changes.Tres Seaver2012-06-111-0/+3
|
* Pull mness-statistics branch.Tres Seaver2012-06-113-2/+67
|\
| * added cache statiticsJeremiah Ness2012-06-063-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 Seaver2012-06-112-2/+13
| |
* | Add placeholders in empty docs directories.Tres Seaver2012-06-112-0/+0
| |
* | Add Sphinx documentation.Tres Seaver2012-06-119-36/+685
| |
* | Drop support for Python 2.5.Tres Seaver2012-06-112-1/+4
| | | | | | | | Note support for PyPy, added earlier.
* | Typo.Tres Seaver2012-06-111-1/+1
| |
* | Add 'setup.py docs' alias.Tres Seaver2012-06-113-0/+4
| | | | | | | | Installs 'Sphinx' and dependencies.
* | Add 'setup.py dev' alias.Tres Seaver2012-06-113-1/+11
|/ | | | Runs ``develop`` plus installs 'nose' and 'coverage'.
* Try working around (pip-induced?) weirdness under tox.Tres Seaver2012-03-241-1/+3
|
* Add tox support.Tres Seaver2012-03-242-36/+15
|
* Note bugfix.Tres Seaver2012-03-241-0/+6
|
* Use lock-as-context manager to avoid race condition (issue #10).Tres Seaver2012-03-241-17/+5
|
* Prep 0.5 release.0.5Tres Seaver2012-03-242-4/+3
|
* add trove classifiers, bump to 0.5devChris McDonough2012-03-231-2/+9
|
* dont test under jython; this is just a testing raceChris McDonough2012-03-231-4/+15
|
* prevent py32 from whining about assert_Chris McDonough2012-03-231-23/+24
|
* ignore all env*/Chris McDonough2012-03-231-1/+1
|
* Changelog, note post-0.4 stuff.Tres Seaver2012-03-232-1/+22
|
* Don't encourage running a unit test module as a script.Tres Seaver2012-03-231-4/+0
| | | | Instead, use 'setup.py test' or nosetests.
* Reach full statement coverage with noseStefan Nordhausen2012-01-241-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 againStefan Nordhausen2012-01-191-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 decoratorStefan Nordhausen2012-01-182-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 featuresStefan Nordhausen2012-01-181-2/+190
|
* Add many more test cases and a cache-consistency check.Stefan Nordhausen2012-01-171-0/+199
|
* Add ExpiringLRUCache class.Stefan Nordhausen2012-01-171-1/+129
| | | | This is a copy & paste of LRUCache with expiry features added.
* - Rename _marker to _MARKER to make pylint happy.Stefan Nordhausen2012-01-161-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 "delStefan Nordhausen2012-01-161-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 Nordhausen2012-01-132-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 Nordhausen2012-01-132-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 Nordhausen2012-01-131-4/+0
|
* prep for 0.40.4Chris McDonough2011-09-041-1/+1
|
* prep for 0.4Chris McDonough2011-09-043-12/+10
|
* add py3 trove classifierChris McDonough2011-08-161-0/+1
|
* prep for mergeChris McDonough2011-08-165-3/+47
|
* Updated CHANGES.txt and signed contributor agreement.Joel Bohman2011-08-162-0/+2
|
* Added Python 3 support.Joel Bohman2011-08-161-1/+5
|
* Add (and sign) contributor agreement.Tres Seaver2011-02-251-0/+106
|
* moved from svnChris McDonough2011-02-254-281/+22
|
* Normalize nosetests.Chris McDonough2010-03-031-1/+2
|
* Prep for 0.3.Chris McDonough2009-06-162-1/+6
|
* Add a thread lock around clear logic.Chris McDonough2009-06-161-7/+11
|
* Prep for 0.2.Chris McDonough2009-06-151-15/+8
|
* Add a clear method; prep for 0.2.Chris McDonough2009-06-153-5/+9
|
* To dev.Chris McDonough2009-06-142-2/+7
|
* Ignore dist.Chris McDonough2009-06-140-0/+0
|
* Break out the BFG lru cache implementation into a shareable package.Chris McDonough2009-06-1410-0/+623