We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7f3960 commit 883f194Copy full SHA for 883f194
__pycache__/run.cpython-39.pyc
209 Bytes
run.py
@@ -33,6 +33,15 @@ def get(key):
33
else:
34
return f"{key} is not exists"
35
36
+# delete
37
+@app.route('/delete/<string:key>')
38
+def delete(key):
39
+ if redis_cache.exists(key):
40
+ redis_cache.delete(key)
41
+ return f"{key} deleted!"
42
+ else:
43
+ return f"{key} is not exists"
44
+
45
# expire
46
@app.route('/expire/<string:key>/<int:expired>')
47
def expire(key, expired):
0 commit comments