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