是不是有什么LRU实施的IDictionary的? [英] Is it there any LRU implementation of IDictionary?

查看:200
本文介绍了是不是有什么LRU实施的IDictionary的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现一个简单的内存LRU缓存系统,我在想以一个IDictionary实现,它可以处理一个散列LRU机制的解决方案。
从Java的到来,我与的LinkedHashMap 的经历,其工作罚款我需要什么:我不能在任何地方找到.NET类似的解决方案

I would like to implement a simple in-memory LRU cache system and I was thinking about a solution based on an IDictionary implementation which could handle an hashed LRU mechanism. Coming from java, I have experiences with LinkedHashMap, which works fine for what I need: I can't find anywhere a similar solution for .NET.

有没有人开发的,或有没有人有过这样的经历?

Has anyone developed it or has anyone had experiences like this?

推荐答案

有没有在做这个基类库。

There is nothing in the base class libraries that does this.

在自由侧,可能像C5的<一个href=\"http://www.itu.dk/research/c5/Release1.1/c5doc/types/C5.HashedLinkedList%5F1.htm\">HashedLinkedList会工作。

On the free side, maybe something like C5's HashedLinkedList would work.

如果你愿意付出,也许看看此C#工具箱。它包含的实现。

If you're willing to pay, maybe check out this C# toolkit. It contains an implementation.

这篇关于是不是有什么LRU实施的IDictionary的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆