protected CacheItem() { _largeObjectData = new LargeObjectContainerData(Guid.NewGuid()) { RegenerationCost = RegenerationCost.Low }; }
protected CacheItem() { _largeObjectData = new LargeObjectContainerData(Guid.NewGuid()) { RegenerationCost = LargeObjectContainerData.PresetGeneratedData }; }
internal CacheItem(string key) { _key = key; _largeObjectData = new LargeObjectContainerData(Guid.NewGuid()) { RegenerationCost = RegenerationCost.Low }; }
internal CacheItem(string key) { _key = key; _largeObjectData = new LargeObjectContainerData(Guid.NewGuid()) { RegenerationCost = LargeObjectContainerData.PresetGeneratedData }; }
public Item(Key key) { _key = key; _pixelData = new ColorPixelData(key.ImageRectangle.Height, key.ImageRectangle.Width, GetPixelData); _largeObjectData = new LargeObjectContainerData(Guid.NewGuid()) { RegenerationCost = RegenerationCost.Low }; }
public LargeObject(byte[] bytes) { _bytes = bytes; _data = new LargeObjectContainerData(Guid.NewGuid()) { BytesHeldCount = _bytes.Length, LargeObjectCount = 1, RegenerationCost = RegenerationCost.Low }; _data.UpdateLastAccessTime(); MemoryManager.Add(this); }