C#: How to implement a smart cache

后端 未结 6 530
离开以前
离开以前 2021-01-31 05:26

I have some places where implementing some sort of cache might be useful. For example in cases of doing resource lookups based on custom strings, finding names of properties usi

6条回答
  •  一个人的身影
    2021-01-31 05:57

    Looks like .NET 4.0 now supports System.Runtime.Caching for caching many types of things. You should look into that first, instead of re-inventing the wheel. More details:

    http://msdn.microsoft.com/en-us/library/system.runtime.caching%28VS.100%29.aspx

提交回复
热议问题