public static void ClearSessionCache() { lock (DBLock) { SessionsCache.Clear(); } }
private static void OnThemeChange(object sender, EventArgs e) { OnlineResources.Reset(); ResetResources(); ResetIcons(); CarsCache.Clear(); SessionsCache.Clear(); }
public CachedRepository(MongoRepository repository) { _repository = repository; sessionsCache = new SessionsCache(repository); actionsCache = new ActionsCache(repository); }