2023-08-21 21:28:52 -06:00
|
|
|
from flask_caching import Cache
|
2023-08-23 01:14:19 -06:00
|
|
|
from redis import Redis
|
2023-08-21 21:28:52 -06:00
|
|
|
|
2023-08-22 00:01:32 -06:00
|
|
|
cache = Cache(config={'CACHE_TYPE': 'RedisCache', 'CACHE_REDIS_URL': 'redis://localhost:6379/0', 'CACHE_KEY_PREFIX': 'local-llm'})
|
2023-08-23 01:14:19 -06:00
|
|
|
redis = Redis()
|