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 DC
set_data = ((1, 2, 3), None, "", "123", (), [], {})
def get(data, args):
return data, args
dc = DC(timeout=0).set_getter(get)
for data in set_data:
dc.update(data, {'key': data})
print(dc.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.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for buffercache-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82d73a3d50685dfa2a1651d53cca0209fa2276423f979f14f8b647a8f38cc6da |
|
MD5 | dcf8b464efb1a6cbd00b538f07ef41f9 |
|
BLAKE2b-256 | 11a310af65b4aabfbe020c5b29f3076487f06bd7e6e2268778c79e905d9558cd |