Package Info

python-cachey


A Python cache mindful of computation/storage costs


Development/Languages/Python

Cachey tries to hold on to values that have the following characteristics

  1. Expensive to recompute (in seconds)
  2. Cheap to store (in bytes)
  3. Frequently used
  4. Recenty used

It accomplishes this by adding the following to each items score on each access

score += compute_time / num_bytes * (1 + eps) ** tick_time

For some small value of epsilon (which determines the memory halflife). This has units of inverse bandwidth, has exponential decay of old results and roughly linear amplification of repeated results.


License: BSD-3-Clause
URL: http://github.com/mrocklin/cachey/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.2.1-bp152.1.3 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-cachey
0.2.1-bp153.1.16 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-cachey