Skip to main content

Simple Redis-like interface to storing arbirary Python objects. A high-level wrapper around ZoDB.

Project description

obj-cache

Overview

Simple Redis-like interface to storing arbitrary Python objects. A high-level wrapper around ZoDB.

Getting Started

Install objcache:

pip install objcache

A simple example:

from objcache import ObjectCache

cache = ObjectCache('cache.zodb', ('a', 'b'))
cache.store(5)

# Later session
cache = ObjectCache('cache.zodb', ('a', 'b'))
result = cache.get()
print(result)
5

Links

See the documentation here.

Author

Created by Nick DeRobertis. MIT License.

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

objcache-0.1.1.tar.gz (5.8 kB view hashes)

Uploaded source

Built Distribution

objcache-0.1.1-py3-none-any.whl (6.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page