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
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
objcache-0.1.1.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file objcache-0.1.1.tar.gz
.
File metadata
- Download URL: objcache-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6a73b42d99a10a373eac009d166486616420874ab34b9a99ec937044342d2ad |
|
MD5 | d8f8c36da6cdca256bd63b9978c8cb48 |
|
BLAKE2b-256 | 92702d71165db175b9ced659724e85396e62650d2314cf35378a289b10215436 |
File details
Details for the file objcache-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: objcache-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2684ebde2777f1fc000780e13e6913e7f87f8f655a38dd72252a429f63de3216 |
|
MD5 | 3a3e7d8b77c7e164a393f5c31aadbf0e |
|
BLAKE2b-256 | f61d7be273f021feca95cb539889c18ee991aa72fa8f03169273af61dbbf6fe3 |