use redis caching
This commit is contained in:
parent
90f1381f4f
commit
7d23f95d26
|
@ -1,3 +1,5 @@
|
|||
# local-llm-server
|
||||
|
||||
_A HTTP API to serve local LLM Models._
|
||||
|
||||
`sudo apt install redis`
|
|
@ -1,3 +1,3 @@
|
|||
from flask_caching import Cache
|
||||
|
||||
cache = Cache(config={'CACHE_TYPE': 'simple'})
|
||||
cache = Cache(config={'CACHE_TYPE': 'redis', 'CACHE_REDIS_URL': 'redis://localhost:6379/0'})
|
||||
|
|
Reference in New Issue