Skip to main content

a tool for data caching

Project description

GitHub GitHub branch checks state GitHub Release Date

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


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)

Uploaded Source

Built Distribution

buffercache-1.0.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page