| 12 | ) |
| 13 | |
| 14 | type CacheManager struct { |
| 15 | dirCache *cache.KeyedCache[*directoryCache] // Cache for directory listings |
| 16 | linkCache *cache.TypedCache[*objWithLink] // Cache for file links |
| 17 | userCache *cache.KeyedCache[*model.User] // Cache for user data |
| 18 | settingCache *cache.KeyedCache[any] // Cache for settings |
| 19 | detailCache *cache.KeyedCache[*model.StorageDetails] // Cache for storage details |
| 20 | } |
| 21 | |
| 22 | func NewCacheManager() *CacheManager { |
| 23 | return &CacheManager{ |
nothing calls this directly
no outgoing calls
no test coverage detected