Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Memoization decorator using an adaptive replacement cache.

Project Description

Adaptive Replacement Cache - a Python3 decorator

Mostly for self-study purposes. Use at your own risk.

Usage

from arc_cache import arc_cache

@arc_cache()
def my_heavy_function(arg1):
  do_stuff()

Developing

Setup a virtualenv using

$ pip3 install tox
$ tox -e develop
$ . .venv/bin/activate

Testing

Run all tests using

$ tox

Releasing

$ python setup.py bdist sdist bdist_wheel
$ gpg -u ... --detach-sign -a dist/...
$ twine upload dist/*

References

Python 3.5 (I believe) uses a C-implementation of lru_cache.

Release History

Release History

This version
History Node

0.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
arc_cache-0.1.1.macosx-10.10-x86_64.tar.gz (5.4 kB) Copy SHA256 Checksum SHA256 Source Nov 26, 2015
arc_cache-0.1.1-py3-none-any.whl (5.7 kB) Copy SHA256 Checksum SHA256 py3 Wheel Nov 26, 2015
arc_cache-0.1.1.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Nov 26, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting