C#: How to implement a smart cache

后端 未结 6 518
离开以前
离开以前 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:53

    This is a common problem that has many solutions depending on your application need. It is so common that Microsoft released a whole library to address it. You should check out Microsoft Velocity before rolling up your own cache. http://msdn.microsoft.com/en-us/data/cc655792.aspx Hope this help.

提交回复
热议问题