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.
ARC - A Self-Tuning, Low Overhead Replacement Cache (2003)
Adaptive Replacement Cache on Wikipedia
lru_cache in cpython 3.4
Metadata
Release files for arc_cache 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | |
|---|---|---|---|
| arc_cache-0.1.1.tar.gz | 4.0 kB | Details | |
| arc_cache-0.1.1.macosx-10.10-x86_64.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arc_cache-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / arc_cache-0.1.1.tar.gz
| Download URL | arc_cache-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
703fce1df5bbfe47846a102fc1fbe12d73290f2cbc291383238980610c296cef
|
|
BLAKE2b-256 checksum How to use checksums |
59a0c0e531ac4bdc0b36d703b8892e4d2b4d9be9209dc287ecd692692bedb4e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / arc_cache-0.1.1.macosx-10.10-x86_64.tar.gz
| Download URL | arc_cache-0.1.1.macosx-10.10-x86_64.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f42c398b71319b325d9a40bb626f0432c376e7a700e3664b5b711933b913c27c
|
|
BLAKE2b-256 checksum How to use checksums |
b64d1a67db240e23a9d2989418471ae0b1078cdc5aacb8380ac82ae56f9e615f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / arc_cache-0.1.1-py3-none-any.whl
| Download URL | arc_cache-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf9c12faabcdb5bf89a8616f7a93d6a14f0be74c2ab4dfce797f0bcb269f835a
|
|
BLAKE2b-256 checksum How to use checksums |
9042fe40266af657d2bea4800a313ccfb35d963f7dfec204353c71422921d15e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |