You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements IInMemoryCacheRepository as a thread-safe (lock), in-process memory cache backed by List<InMemoryCacheItem>. Registered as a Singleton in InfrastructureServiceRegistration.cs and consumed by CacheManager.
Task SaveToInMemoryCache<T>(string item, T value, int cacheExpirationSeconds): Removes expired items, replaces any existing entry for item, and adds a new InMemoryCacheItem expiring after cacheExpirationSeconds.
Task<T?> GetFromInMemoryCache<T>(string item): Removes expired items and returns the cached value cast to T?, or default(T) if not found.
Task RemoveFromInMemoryCache(string item): Removes all entries matching key item.
Task RemoveExpiredItemsFromInMemoryCache(): Removes all items where ExpirationDate <= DateTime.UtcNow.