Python API for accessing RedisCache
Project description
Pyrcache
Setup
- Install Docker + Docker Desktop
- Open a terminal and enter:
git clone github.com/yamaceay/rediscache cd rediscache docker-compose up --build
- Now you are ready to go!
Get Started
import rcache
print(rcache.keys()) # prints all keys from the database
if len(rcache.keys()) == 0:
exit()
key = rcache.keys()[0]
print(rcache.rget(key)) # print the value of key
value = "{\"name\": \"mike\", \"surname\": \"smith\"}"
rcache.rset(key, value) # updates the key-value pair
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
pyrcache-1.0.10.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for pyrcache-1.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e0f95b92bb3b96e72e2e70f3b65a098e05e6c6dcde973077fdc9d7640cd0872 |
|
MD5 | a2d6dad3bd8d6164dc404026a4f1422b |
|
BLAKE2b-256 | 22413bb488dc4aed78247c719af15c06969069512d9c11dc9f54c0b1e89dcd1f |