Cache function results to disk
Project description
Function Cacher
Overview
This repository contains the source code of the Function Cacher project. Please refer to https://function-cacher.readthedocs.io/en/latest/index.html for documentation.
The Function Cacher project provides a parameter-based cacher which caches return values of cached functions to disk.
Installation
You may use pip to install this package:
pip install functionCacher
The package is located here: https://pypi.org/project/functionCacher/
Basic Usage
from functionCacher.Cacher import Cacher
cacher_instance = Cacher()
@cacher_instance.cache
def myfunc(arg1, arg2):
return [arg1, arg2]
myfunc(1,2) # cache miss
myfunc(1,2) # cache hit
myfunc(2,3) # cache miss
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file functionCacher-1.0.4.tar.gz.
File metadata
- Download URL: functionCacher-1.0.4.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e15ef2a71c88f4199ecc0999b12c88bedc300761d4bf9cfcb20e8c924476f74e
|
|
| MD5 |
f2bba6e0bfcef893be5d911807ef56ca
|
|
| BLAKE2b-256 |
1d4e0a4547e36fa571cdbfd197e2cecac81c7860294ea97aa25b0e3ce16c1cf9
|
File details
Details for the file functionCacher-1.0.4-py3-none-any.whl.
File metadata
- Download URL: functionCacher-1.0.4-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f390ee3f3e8f6414a716e912e06f15fa125ecaaa5aa0c4ea9fd9b4d966e82de6
|
|
| MD5 |
ab350d397bdeef45ad5b937aed5d2146
|
|
| BLAKE2b-256 |
6c9541c88985fc198e63552fc726de32f1db7abd480f0d196e2bda7e7e41840b
|