Skip to content

Latest commit

 

History

History
30 lines (15 loc) · 588 Bytes

File metadata and controls

30 lines (15 loc) · 588 Bytes

quickkvs

Python simple key value store with in-memory, MongoDB and Redis backends.

Use

Here's a typical setup:

from quickkvs import KeyValueStore, MongoBackend

cache = KeyValueStore(backend=MongoBackend, **mongo_settings)

# set some data that expires in 200 seconds
cache.set("mykeyxyz", {'some': 'data'}, expires=200)

result = cache.get("mykeyxyz")

Installation

Mongo backend requires PyMongo Redis backend requires redis-py

Reference

Credits