Is it there any LRU implementation of IDictionary?

前端 未结 10 1795
走了就别回头了
走了就别回头了 2020-11-29 21:20

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 mec

10条回答
  •  情书的邮戳
    2020-11-29 21:42

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

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

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

提交回复
热议问题