- add: session-service

- move: redis_cache from database service to utils so it can be reused
- update: redis_cache set function to allow creating a key without a lifetime
- update: services to use the new get_or_generate_service_id function
This commit is contained in:
2024-12-20 14:43:25 -05:00
parent 07e991fbdc
commit 3c1f8c40d6
16 changed files with 291 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
use sqlx::{FromRow, Row};
use crate::redis_cache::{Cache, RedisCache}; // Import RedisCache
use utils::redis_cache::{Cache, RedisCache}; // Import RedisCache
use serde::{Serialize, Deserialize};
use std::sync::Arc;
use tokio::sync::Mutex;