1 write to _cache
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
1158
_cache
= new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()));
8 references to _cache
Microsoft.AspNetCore.Session.Tests (8)
SessionTests.cs (8)
1167
return
_cache
.Get(key);
1181
return
_cache
.GetAsync(key, token);
1184
public void Refresh(string key) =>
_cache
.Refresh(key);
1197
return
_cache
.RefreshAsync(key);
1200
public void Remove(string key) =>
_cache
.Remove(key);
1202
public Task RemoveAsync(string key, CancellationToken token = default) =>
_cache
.RemoveAsync(key);
1204
public void Set(string key, byte[] value, DistributedCacheEntryOptions options) =>
_cache
.Set(key, value, options);
1217
return
_cache
.SetAsync(key, value, options);