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.1.2.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrcache-1.1.2.tar.gz.
File metadata
- Download URL: pyrcache-1.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eab3f0cc7c696fc4dabd8a31ded9da365b755591a5ae53206ad90d4e669bd1f3
|
|
| MD5 |
72bfa7c4eabbae23f65af055654c59ff
|
|
| BLAKE2b-256 |
35be89db3fbacd49bafb47bb408a0204e3c2ea78bb3e0d2b76ba41f6d4668e94
|
File details
Details for the file pyrcache-1.1.2-py3-none-any.whl.
File metadata
- Download URL: pyrcache-1.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
703f0052e2d0d1a4608141e76f16e446aa785c2f5b9e48be0c18e7a41c5c7ae0
|
|
| MD5 |
2b7a0f43d16c193eaa028f191eaa2d08
|
|
| BLAKE2b-256 |
f681ef98891ae3b5d18a1a6607cd19d2e7158aaed4ccfb2c4f0f2d4510a10493
|