8 references to ReturnToPool
Microsoft.Extensions.Caching.Hybrid (8)
Internal\BufferChunk.cs (5)
38
Debug.Assert(!
ReturnToPool
, "do not return right-sized arrays");
48
Debug.Assert(
ReturnToPool
== returnToPool, "return-to-pool not respected");
74
if (
ReturnToPool
)
80
Debug.Assert(Array is null && !
ReturnToPool
, "expected clean slate after recycle");
91
Debug.Assert(!copy.
ReturnToPool
, "do not return to pool");
Internal\DefaultHybridCache.Debug.cs (2)
62
if (_buffer.
ReturnToPool
)
74
if (_buffer.
ReturnToPool
)
Internal\DefaultHybridCache.MutableCacheItem.cs (1)
17
public override bool NeedsEvictionCallback => _buffer.
ReturnToPool
;