Skip to main content

Time-bound LRU caching library

Project description


Time-bound LRU caching library for Python 3, optimized for speed and efficient use of resources.

EXPERIMENTAL: Use at your own risk.

When installing under PyPy, be sure to:


Requires Python 3.5 or better.

Related Works

The term "TLRU" is also used by M. Bilal and S. Kang in "Time Aware Least Recent Used (TLRU) cache management policy in ICN," 16th International Conference on Advanced Communication Technology, Pyeongchang, 2014, pp. 528-532, doi: 10.1109/ICACT.2014.6779016.

This Python project was originally implemented independently of M. Bilal and S. Kang's work, and the reuse of the term "TLRU" was coincidental. However, we cite it here as an important related work that describes a higher-level network caching system, while also quantifying the effects of combining a TTL with an LRU eviction strategy.


Copyright 2018 by individual and corporate contributors as noted in the individual source files.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use any portion of this software except in compliance with the License. Contributors agree to license their work under the same License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tlru-0.3.1.tar.gz (11.9 kB view hashes)

Uploaded source

Built Distribution

tlru-0.3.1-py2.py3-none-any.whl (10.9 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page