Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yamaceay/pyrcache
https://github.com/yamaceay/pyrcache
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yamaceay/pyrcache
- Owner: yamaceay
- License: mit
- Created: 2022-08-11T10:15:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-24T17:33:01.000Z (over 2 years ago)
- Last Synced: 2024-12-17T17:17:30.259Z (about 2 months ago)
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
## Pyrcache
#### Setup
1. Install Docker + Docker Desktop
2. Open a terminal and enter:
```
git clone github.com/yamaceay/rediscache
cd rediscache
docker-compose up --build
```
3. 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
```