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
buffercache-1.0.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for buffercache-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c759aa28f1c3dd3bf1a971df9e489c5f4ecf9a6b237d6b02bb6653b8758c334 |
|
MD5 | 9f2577979f4b4e9a6bf8e9d253efb1a3 |
|
BLAKE2b-256 | 9c95f6b06016cf9be8d54ed1e06259710a3ae1da2ae4e776091712538d29c73e |