Info
Version: | 1.0.0 |
Author(s): | jakuma.LRUCache |
Last Update: | Wednesday, April 3, 2019 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/jakuma.LRUCache |
Install
Install-Package jakuma.LRUCache
dotnet add package jakuma.LRUCache
paket add jakuma.LRUCache
jakuma.LRUCache Download (Unzip the "nupkg" after downloading)
Usage:
LRUCache<int, int> lruCache = new LRUCache<int, int>(3);
lruCache.Add(1, 1);
lruCache.Add(2, 2);
lruCache.Add(3, 3);
lruCache.Get(1);
lruCache.Get(2);
lruCache.Get(3);
lruCache.Add(4, 4);
lruCache.Delete(2);
lruCache.Add(4, 5);
lruCache.DeleteAll();.