28 references to Me
Microsoft.Extensions.Caching.Hybrid.Tests (28)
L2Tests.cs (14)
54var s = await cache.GetOrCreateAsync(Me(), ct => new ValueTask<string>(CreateString(true)));
60var x = await cache.GetOrCreateAsync(Me(), ct => new ValueTask<string>(CreateString()));
70var x = await cache.GetOrCreateAsync(Me(), ct => new ValueTask<string>(CreateString()), _expiryNoL1);
79await cache.SetAsync(Me(), s);
82var x = await cache.GetOrCreateAsync(Me(), ct => new ValueTask<string>(CreateString()));
90await cache.RemoveAsync(Me());
94var t = await cache.GetOrCreateAsync(Me(), ct => new ValueTask<string>(CreateString(true)));
112var s = await cache.GetOrCreateAsync(Me(), ct => new ValueTask<Foo>(new Foo { Value = CreateString(true) }), _expiry);
118var x = await cache.GetOrCreateAsync(Me(), ct => new ValueTask<Foo>(new Foo { Value = CreateString() }), _expiry);
128var x = await cache.GetOrCreateAsync(Me(), ct => new ValueTask<Foo>(new Foo { Value = CreateString() }), _expiryNoL1);
137await cache.SetAsync(Me(), s);
140var x = await cache.GetOrCreateAsync(Me(), ct => new ValueTask<Foo>(new Foo { Value = CreateString() }), _expiry);
148await cache.RemoveAsync(Me());
152var t = await cache.GetOrCreateAsync(Me(), ct => new ValueTask<Foo>(new Foo { Value = CreateString(true) }), _expiry);
StampedeTests.cs (14)
81results[i] = cache.GetOrCreateAsync(Me(), async ct =>
95Assert.Equal(callerCount, cache.DebugGetCallerCount(Me()));
117results[i] = cache.GetOrCreateAsync(Me(), async ct =>
131Assert.Equal(callerCount, cache.DebugGetCallerCount(Me()));
170results[i] = cache.GetOrCreateAsync(Me(), async ct =>
191Assert.Equal(callerCount, cache.DebugGetCallerCount(Me()));
248results[i] = cache.GetOrCreateAsync(Me(), async ct =>
269Assert.Equal(callerCount, cache.DebugGetCallerCount(Me()));
322var first = cache.GetOrCreateAsync(Me(), async ct =>
329var second = cache.GetOrCreateAsync(Me(), async ct =>
362var first = cache.GetOrCreateAsync(Me(), async ct =>
369var second = cache.GetOrCreateAsync(Me(), async ct =>
406var first = cache.GetOrCreateAsync(Me(), async ct =>
413var second = cache.GetOrCreateAsync(Me(), async ct =>