public bool FlushDB(string key = "*") { if (!IsCachingServer) { return(false); } try { if (key.Length < 1 || key == "*") { Sut.FlushDb(); return(true); } else { var keys = Sut.SearchKeys(key + ":*"); if (keys.Count() > 0) { Sut.RemoveAll(keys); } return(true); } } catch { return(false); } }
public IActionResult Flush() { ICacheClient client = getCacheClient(); client.FlushDb(); return(Ok()); }
public void Clear() { _database.FlushDb(); }
public void Clear() { client.FlushDb(); }
public void FlushDb() { _clientExt.FlushDb(); }