Skip to content

Commit b990148

Browse files
authored
Update README.md
1 parent be5369a commit b990148

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
1-
# FirstRedisPython
1+
# FirstRedisPython
2+
3+
## Using
4+
5+
```
6+
flask run
7+
```
8+
9+
## Routes
10+
11+
**Set a new key with value: **
12+
http://127.0.0.1:5000/set/name/Max
13+
14+
**Get value of a key: **
15+
http://127.0.0.1:5000/get/name
16+
17+
**Set value to a key with expire time: **
18+
http://127.0.0.1:5000/set/name/Max/5
19+
20+
**Set expire time on a key: **
21+
http://127.0.0.1:5000/expire/name/10
22+
23+
### References
24+
25+
- https://redis.io/commands/expire
26+
- https://stackoverflow.com/questions/36000981/storing-keys-with-prefix-that-expire-in-redis
27+
- https://redis-py.readthedocs.io/en/stable/
28+
- https://realpython.com/python-redis/
29+
- https://stackoverflow.com/questions/36000981/storing-keys-with-prefix-that-expire-in-redis
30+
- https://redis-py.readthedocs.io/en/stable/_modules/redis/client.html#Redis.expire
31+
- https://medium.com/@ashok.tankala/how-to-write-your-own-redis-key-expire-listener-in-python-53e531a97f36
32+
33+
© Copyright Max Base, 2021

0 commit comments

Comments
 (0)