Skip to content

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

License

Notifications You must be signed in to change notification settings

colevscode/quickkvs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages