mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-22 14:10:01 +08:00
Replaced redis with Valkey (#3164)
### What problem does this PR solve? Replaced redis with Valkey. Close #3070 ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [x] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
This commit is contained in:
parent
44ad9a6cd7
commit
37d71dfa90
@ -75,7 +75,7 @@ services:
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
image: redis:7.2.4
|
||||
image: valkey/valkey:8
|
||||
container_name: ragflow-redis
|
||||
command: redis-server --requirepass ${REDIS_PASSWORD} --maxmemory 128mb --maxmemory-policy allkeys-lru
|
||||
ports:
|
||||
|
1159
poetry.lock
generated
1159
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -78,7 +78,7 @@ pywencai = "0.12.2"
|
||||
qianfan = "0.4.6"
|
||||
ranx = "0.3.20"
|
||||
readability-lxml = "0.8.1"
|
||||
redis = "5.0.3"
|
||||
valkey = "6.0.2"
|
||||
requests = "2.32.2"
|
||||
replicate = "0.31.0"
|
||||
roman-numbers = "1.0.2"
|
||||
|
@ -1,6 +1,6 @@
|
||||
import json
|
||||
|
||||
import redis
|
||||
import valkey as redis
|
||||
import logging
|
||||
from rag import settings
|
||||
from rag.utils import singleton
|
||||
@ -40,7 +40,7 @@ class RedisDB:
|
||||
db=int(self.config.get("db", 1)),
|
||||
password=self.config.get("password"),
|
||||
decode_responses=True)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
logging.warning("Redis can't be connected.")
|
||||
return self.REDIS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user