19 namespace Deveel.Data.Caching {
25 public int MaxSize {
get;
private set; }
30 if (NodeCount >= MaxSize) {
36 base.UpdateElementAccess(key, cacheValue);
38 while (IndexList.Count > MaxSize) {
39 RemoveUnlocked(IndexList.Last.Value.Key);
SizeLimitedCache(int maxSize)
override void UpdateElementAccess(object key, CacheValue cacheValue)
override void CheckClean()
This is called whenever at object is put into the cache.