Simple utility providing a least-recently-used order
Inheritance Hierarchy
Apptus.Util.CollectionLRUK, T
Namespace: Apptus.Util.Collection
Assembly: Apptus.Esales.ConnectorApi (in Apptus.Esales.ConnectorApi.dll) Version: 3.47.3
Syntax
C#
public sealed class LRU<K, T> where T : LRUK, TNode<K>
Type Parameters
- K
- T
The LRUK, T type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | LRUK, T | Initializes a new instance of the LRUK, T class |
Properties
Name | Description | |
---|---|---|
![]() | Limit |
Methods
Name | Description | |
---|---|---|
![]() | Clear | |
![]() | Equals | (Inherited from Object.) |
![]() | Get |
Get the node with the specified key |
![]() | GetExisting |
Get the node with the specified key |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | Remove |
Remove the node with the specified key |
![]() | RemoveStale |
Remove nodes that hasn't been touched since the specified old |
![]() | Size |
Get the current number of nodes present in this LRU instance.
|
![]() | ToString | (Inherited from Object.) |
![]() | Touch |
See Also