mirror of
https://github.com/sadoyan/aralez.git
synced 2026-11-24 21:59:07 +08:00
Fix problem with caching partial responses.
This commit is contained in:
Vendored
+1
-1
@@ -27,7 +27,7 @@ pub async fn init_cache(config: Arc<AppConfig>) {
|
||||
let manager = Manager::new(cache_size);
|
||||
let _ = EVICTION.set(manager);
|
||||
GLOBAL_STORAGE.set(Box::new(MemCache::new())).ok();
|
||||
info!("Cache initialized successfully. Storage: {}", storage);
|
||||
info!("Cache initialized successfully. Storage: {}, Size: {}mb", storage, size);
|
||||
}
|
||||
"redis" => match RedisCache::new(&storage, ttl).await {
|
||||
Ok(cache) => {
|
||||
|
||||
Reference in New Issue
Block a user