a tool for data caching
Project description
buffercache is a python3 library. It provides utility methods for data caching.
buffercache supports Python 3.0+ only. It is contained in only one Python file, so it can be easily copied into your project. (The copyright and license notice must be retained.)
example:
from buffercache import BufferCache as BC
set_data = ((1, 2, 3), None, "", "123", (), [], {})
def get(data, args):
return data, args
bc = BC(timeout=0).set_getter(get)
for data in set_data:
bc.update(data, {'key': data})
print(bc.get())
Bugs can be reported to https://github.com/caibingcheng/buffercache. The code can also be found there.
Project details
Release history Release notifications | RSS feed
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 buffercache-1.0.2.tar.gz.
File metadata
- Download URL: buffercache-1.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75abec06b2c35cb6e41ec6cb8a3cc35bd787dbad6183fcaa81e63191ae97d360
|
|
| MD5 |
1088665fcae79b12da52c2c2c27e7487
|
|
| BLAKE2b-256 |
0d1070167abd1e4eb8467e5e802506bd2eea02292c91fb6d68859526f6946e50
|
File details
Details for the file buffercache-1.0.2-py3-none-any.whl.
File metadata
- Download URL: buffercache-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c759aa28f1c3dd3bf1a971df9e489c5f4ecf9a6b237d6b02bb6653b8758c334
|
|
| MD5 |
9f2577979f4b4e9a6bf8e9d253efb1a3
|
|
| BLAKE2b-256 |
9c95f6b06016cf9be8d54ed1e06259710a3ae1da2ae4e776091712538d29c73e
|