ExpiringView

Mapping class which gives key/value pairs an expiry time.


License
BSD-1-Clause
Install
pip install ExpiringView==0.2

Documentation

ExpiringView

A wrapper around a mapping which allows for key/value pairs to expire. Wrap this around a shelve.Shelve for a quick and dirty cache.

Note that pairs only expire when accessed, so to purge all old data one must iterate across the entire wrapper.

Please see docstrings for more extensive documentation.