If you are using .NET 4 or superior, you can use MemoryCache class.
More Related Contents:
- What is the best way to lock cache in asp.net?
- MemoryCache does not obey memory limits in configuration
- Does WeakReference make a good cache?
- Using multiple instances of MemoryCache
- .NET 4 Caching Support
- How to empty/flush Windows READ disk cache in C#?
- Why .NET String is immutable? [duplicate]
- Can attributes be added dynamically in C#?
- Detect if deserialized object is missing a field with the JsonConvert class in Json.NET
- Detect if running as Administrator with or without elevated privileges?
- What is the best way to check for Internet connectivity using .NET?
- Read SQL Table into C# DataTable
- How to get an HtmlElement value inside Frames/IFrames?
- How can I protect my .NET assemblies from decompilation?
- Retrieve current URL from C# windows forms application
- How can I print the contents of an array horizontally?
- Regex that matches a newline (\n) in C#
- How do I marshal a struct that contains a variable-sized array to C#?
- What is the correct way to compare char ignoring case?
- How can I write a unit test to determine whether an object can be garbage collected?
- How can I generate UUID in C#
- Canadian postal code validation
- Should a property have the same name as its type?
- .NET: Get all Outlook calendar items
- How to check if the system audio is muted?
- Explanation of Func
- Subscribe to INotifyPropertyChanged for nested (child) objects
- How do I minimize a WinForms application to the notification area?
- Encryption compatible between Android and C#
- Two Types not equal that should be