/usr/share/pyshared/repoze.lru-0.4.egg-info/PKG-INFO is in python-repoze.lru 0.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | Metadata-Version: 1.0
Name: repoze.lru
Version: 0.4
Summary: A tiny LRU cache implementation and decorator
Home-page: http://www.repoze.org
Author: Agendaless Consulting
Author-email: repoze-dev@lists.repoze.org
License: BSD-derived (http://www.repoze.org/LICENSE.txt)
Description: repoze.lru
==========
``repoze.lru`` is a LRU (least recently used) cache implementation. Keys and
values that are not used frequently will be evicted from the cache faster
than keys and values that are used frequently. It works under Python 2.5,
Python 2.6, Python 2.7, and Python 3.2.
API
---
Creating an LRUCache object::
from repoze.lru import LRUCache
cache = LRUCache(100) # 100 max length
Retrieving from an LRUCache object::
cache.get('nonexisting', 'foo') # will return 'foo'
cache.get('nonexisting') # will return None
cache.get('existing') # will return the value for existing
Adding to an LRUCache object::
cache.put('key', 'value') # will add the key 'key' with the value 'value'
Clearing an LRUCache::
cache.clear()
Decorator
---------
A ``lru_cache`` decorator exists. All values passed to the decorated
function must be hashable. It does not support keyword arguments::
from repoze.lru import lru_cache
@lru_cache(500)
def expensive_function(*arg):
pass
Each function decorated with the lru_cache decorator uses its own
cache related to that function.
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.
Keywords: repoze lru cache
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
|