Add method query redis
This commit is contained in:
5
main.py
5
main.py
@@ -2223,6 +2223,11 @@ async def fastapi_clear_redis():
|
|||||||
redis_client.flushall()
|
redis_client.flushall()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@app.get("/queryredis/")
|
||||||
|
async def fastapi_query_redis():
|
||||||
|
return redis_client.keys("*")
|
||||||
|
|
||||||
|
|
||||||
@app.get("/queryinfluxdbbuckets/")
|
@app.get("/queryinfluxdbbuckets/")
|
||||||
async def fastapi_query_influxdb_buckets():
|
async def fastapi_query_influxdb_buckets():
|
||||||
return influxdb_api.query_buckets()
|
return influxdb_api.query_buckets()
|
||||||
|
|||||||
Reference in New Issue
Block a user