Store things in Redis without worrying about types or anything, just do it!
Project description
Redis Pal
Stop worrying about serialization! Store (almost) anything on Redis without even thiking about it.
You can also check the last time you've modified a given key just by calling get_with_timestamp(key)
.
Usage
>>> import numpy as np
>>> from redis_pal import RedisPal
>>> rp = RedisPal()
>>> rp.set("test", np.array([1, 2, 3]))
True
>>> rp.get("test")
array([1, 2, 3])
>>> rp.get_with_timestamp("test")
{'value': array([1, 2, 3]), 'last_modified': 1613329082.33473}
Installation
As simple as running
pip3 install redis-pal
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
redis_pal-0.1.0.tar.gz
(88.0 kB
view hashes)