public bool Save(CallHistory callHistory) { var success = _internalRepository.Save(callHistory); _lazyCache.ClearCallHistory(); return(success); }
public static void FullReload(this IAppCache cache) { log.Info("Full cache reload"); // TODO: Maybe divide this function in to more granularity cache.ClearSipAccounts(); cache.ClearRegisteredUserAgents(); // Make sure that this one is cleared if user agents change cache.ClearOngoingCalls(); cache.ClearCallHistory(); cache.ClearLocationNetworks(); cache.ClearSettings(); cache.ClearAvailableFilters(); cache.ClearProfiles(); cache.ClearProfileGroups(); cache.ClearUserAgents(); }