InMemoryStorage<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generic in-memory storage of items
public class InMemoryStorage<T>
type InMemoryStorage<'T> = class
Public Class InMemoryStorage(Of T)
Type Parameters
- T
T defines the type of item stored
- Inheritance
-
InMemoryStorage<T>
Constructors
InMemoryStorage<T>() |
Properties
MaxItemCount |
Gets or sets the maximum count of Items that can be stored in this InMemoryStorage instance. |
Methods
Clear() |
Clears all items stored in memory |
Clear(TimeSpan) |
Clears items stored in memory based on duration passed |
GetItem(String, TimeSpan) |
Get item from in-memory storage as long as it has not ex |
Remove(IEnumerable<String>) |
Remove items based on provided keys |
SetItem(InMemoryStorageItem<T>) |
Add new item to in-memory storage |