Refactor favorites management to use Redis
- Removed local favorites.json file and related file handling in the code. - Implemented Redis caching for managing favorite articles, including methods to set, get, and check favorites. - Updated TelegramManager and server API to interact with Redis for favorite operations. - Added search functionality for articles in Redis, enhancing user experience. - Adjusted frontend components to support searching and displaying articles from Redis.
This commit is contained in:
@@ -36,7 +36,6 @@ services:
|
||||
# Montar archivos de configuración y datos en ubicación predecible
|
||||
- ./config.yaml:/data/config.yaml:ro
|
||||
- ./workers.json:/data/workers.json:rw
|
||||
- ./favorites.json:/data/favorites.json:rw
|
||||
- ./logs:/data/logs:rw
|
||||
# Montar el directorio raíz para acceso a archivos
|
||||
- .:/data/project:ro
|
||||
@@ -83,7 +82,6 @@ services:
|
||||
# Montar archivos de configuración
|
||||
- ./config.yaml:/app/config.yaml:ro
|
||||
- ./workers.json:/app/workers.json:ro
|
||||
- ./favorites.json:/app/favorites.json:rw
|
||||
# Montar directorio de logs en lugar del archivo para evitar problemas
|
||||
- ./logs:/app/logs:rw
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user