Skip to main content

Time-bound LRU caching library

Project description

tLRU

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:

export XXHASH_FORCE_CFFI=1

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.

Legal

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 http://www.apache.org/licenses/LICENSE-2.0

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file tlru-0.3.1.tar.gz.

File metadata

  • Download URL: tlru-0.3.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for tlru-0.3.1.tar.gz
Algorithm Hash digest
SHA256 1ab3c1bd88688277ab4a24180d45f501ffc5ba73a8a10715daca2ef144a8ca2e
MD5 39c42406a29dfa8dc6f15d51ad2b0909
BLAKE2b-256 b2284b82c8b97ceb1bf6fcf277687f6440a844824ad08889b80be23a817442be

See more details on using hashes here.

File details

Details for the file tlru-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: tlru-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for tlru-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eca7c4d30e023f053d75dfce7304b36a459a7b52e10689fc815aca75fe8eb322
MD5 ee429495271827f02d70c768e74461e7
BLAKE2b-256 9c3eccd633ac87cca6b1696fcb02d6ae4cc95f2f999da5688bca63105a5aaec3

See more details on using hashes here.

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