Class GenericCacheItem<T>
Gets an implementation to save a collection of
Inheritance
System.Object
GenericCacheItem<T>
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Cache
Assembly: Simplic.CoreLib.dll
Syntax
public sealed class GenericCacheItem<T> : ICacheable
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceGenericCacheItem(T)
Initialize a new generic cache item
Declaration
public GenericCacheItem(T data)
Parameters
Type | Name | Description |
---|---|---|
T | data |
Properties
| Improve this Doc View SourceData
Gets or sets the cache item data
Declaration
public T Data { get; set; }
Property Value
Type | Description |
---|---|
T |
Key
Gets the cache item key (type of data)
Declaration
public string Key { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceOnRemove()
Remove the data and dispose if possible
Declaration
public void OnRemove()