public IActionResult ClearCache(string username, string password) { if (_loginService.ClearCache(username, password)) { _cache.Clear(); return(new JsonResult(true)); } return(new JsonResult(false)); }
public Task <T> AddAsync(T entity) { _cache.Clear(); return(_efRepository.AddAsync(entity)); }
public void ClearCacheAll() { _cache.Clear(); }