Exemple #1
0
        public IActionResult ClearCache(string username, string password)
        {
            if (_loginService.ClearCache(username, password))
            {
                _cache.Clear();
                return(new JsonResult(true));
            }

            return(new JsonResult(false));
        }
Exemple #2
0
 public Task <T> AddAsync(T entity)
 {
     _cache.Clear();
     return(_efRepository.AddAsync(entity));
 }
Exemple #3
0
 public void ClearCacheAll()
 {
     _cache.Clear();
 }