Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickderobertis/obj-cache
Simple Python Object Cache
https://github.com/nickderobertis/obj-cache
Last synced: about 3 hours ago
JSON representation
Simple Python Object Cache
- Host: GitHub
- URL: https://github.com/nickderobertis/obj-cache
- Owner: nickderobertis
- License: mit
- Created: 2020-02-03T12:57:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T21:39:17.000Z (about 2 years ago)
- Last Synced: 2024-11-24T23:07:16.228Z (2 months ago)
- Language: Python
- Size: 3.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![](https://codecov.io/gh/nickderobertis/obj-cache/branch/master/graph/badge.svg)](https://codecov.io/gh/nickderobertis/obj-cache)
# 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:
```python
from objcache import ObjectCachecache = 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.](
https://nickderobertis.github.io/obj-cache/
)## Author
Created by Nick DeRobertis. MIT License.