Skip to main content

Yet another in-memory caching package

Project description


Pypi Version Documentation Status Coveralls Status

Yet another in-memory caching package


  • Memoization
  • Selective caching based on decorators
  • Mutli-threaded support
  • Optional garbage collection thread
  • Optional time-based cache expiration

Quick Start

from __future__ import print_function
import time
from yamicache import Cache
c = Cache()
class MyApp(object):
    def long_op(self):
            return 1

app = MyApp()
t_start = time.time()
assert app.long_op() == 1  # takes 30s
assert app.long_op() == 1  # takes 0s
assert app.long_op() == 1  # takes 0s
assert 1 < (time.time() - t_start) < 31


0.6.0 (2020-11-22)

  • Remove support for Python 2.

0.5.1 (2018-04-10)

  • Fix #8: Function default arguments were not handled. There was also a potential cache miss if Python changed the order of dict keys.

0.5.0 (2018-03-23)

  • Fix #7: Timed-out values are not returned when refreshed

0.4.0 (2017-10-09)

  • Added serialize() and deserialize()

0.3.0 (2017-09-05)

  • Added @clear_cache() decorator
  • Added imports to allow for from yamicache import Cache

0.2.0 (2017-09-03)

  • Added cache key collision checking

0.1.1 (2017-09-01)

  • Fix #1: Cache.cached() ignores timeout parameter

0.1.0 (2017-08-28)

  • First release on PyPI.

Project details

Download files

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

Files for yamicache, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size yamicache-0.6.0-py2.py3-none-any.whl (7.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size yamicache-0.6.0.tar.gz (22.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page