6 implementations of Get
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
1161public byte[] Get(string key)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
L2Tests.cs (1)
216byte[]? IDistributedCache.Get(string key)
StampedeTests.cs (1)
41byte[]? IDistributedCache.Get(string key) => throw new NotSupportedException("Intentionally not provided");
Microsoft.Extensions.Caching.Memory (1)
MemoryDistributedCache.cs (1)
46public byte[]? Get(string key)
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
75public byte[]? Get(string key)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
112public byte[]? Get(string key)
39 references to Get
Microsoft.AspNetCore.Session (1)
DistributedSession.cs (1)
184var data = _cache.Get(_sessionKey);
Microsoft.Extensions.Caching.Abstractions (2)
DistributedCacheExtensions.cs (1)
116byte[]? data = cache.Get(key);
IBufferDistributedCache.cs (1)
21/// <remarks>This method is functionally similar to <see cref="IDistributedCache.Get(string)"/>, but avoids the array allocation.</remarks>
Microsoft.Extensions.Caching.Hybrid.Tests (6)
DistributedCacheTests.cs (6)
69Assert.Null(cache.Get(key)); 75var actual = cache.Get(key); 83actual = cache.Get(key); 88actual = cache.Get(key); 115Assert.Null(cache.Get(key)); 181Assert.Null(cache.Get(key));
Microsoft.Extensions.Caching.MicroBenchmarks (3)
DistributedCacheBenchmarks.cs (3)
85_backend.Get(new Guid().ToString()); // just to touch it first 122total += _backend.Get(RandomKey())?.Length ?? 0; 177total += _backend.Get(FixedKey())?.Length ?? 0;
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (27)
RedisCacheSetAndRemoveTests.cs (12)
25var result = cache.Get(key); 38var result = cache.Get(key); 52var result = cache.Get(key1); 55result = cache.Get(key2); 67var result = cache.Get(key); 72result = cache.Get(key); 84var result = cache.Get(key); 88result = cache.Get(key); 108Assert.Null(cache.Get(key)); // expect null 111var arr = cache.Get(key); 139Assert.Null(cache.Get(key)); // expect null 143var raw = cache.Get(key);
TimeExpirationTests.cs (15)
47byte[] result = cache.Get(key); 53result = cache.Get(key); 68var result = cache.Get(key); 114var result = cache.Get(key); 120result = cache.Get(key); 134var result = cache.Get(key); 177var result = cache.Get(key); 182result = cache.Get(key); 195var result = cache.Get(key); 208var result = cache.Get(key); 215result = cache.Get(key); 220result = cache.Get(key); 236var result = cache.Get(key); 243result = cache.Get(key); 253result = cache.Get(key);