Paul "LeoNerd" Evans
|
9ba6487b3f
|
Allow a choice of LRU behaviour for Cache() by using LruCache() or OrderedDict()
|
2015-03-25 19:05:34 +00:00 |
|
Paul "LeoNerd" Evans
|
7ab9f91a60
|
Unit-test that Cache() key eviction is ordered
|
2015-03-25 18:50:43 +00:00 |
|
Paul "LeoNerd" Evans
|
0f86312c4c
|
Pull out the cache logic from the @cached wrapper into its own class we can reuse
|
2015-03-20 18:25:42 +00:00 |
|
Paul "LeoNerd" Evans
|
f53fcbce97
|
Use cache.pop() instead of a separate membership test + del []
|
2015-02-23 18:30:45 +00:00 |
|
Paul "LeoNerd" Evans
|
e76d485e29
|
Allow @cached-wrapped functions to have a prefill method for setting entries
|
2015-02-23 15:41:54 +00:00 |
|
Paul "LeoNerd" Evans
|
ebc3db295b
|
Take named arguments to @cached() decorator, add a 'max_entries' limit
|
2015-02-19 18:36:02 +00:00 |
|