Implements a very simple, size-restricted and thread safe LRU cache for caching arbitrary elements.
Inheritance Hierarchy SystemObject
Ptv.XServer.Controls.Map.Layers.WmtsLayerLruCacheTK, T
Namespace:
Ptv.XServer.Controls.Map.Layers.WmtsLayer
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public class LruCache<TK, T>
where T : class
Public Class LruCache(Of TK, T As Class)
generic<typename TK, typename T>
where T : ref class
public ref class LruCache
type LruCache<'TK, 'T when 'T : not struct> = class end
Type Parameters
- TK
- Type of the key that identifies elements.
- T
- Type of the elements store in the LRU cache.
The LruCacheTK, T type exposes the following members.
Constructors
| Name | Description |
---|
| LruCacheTK, T | Initializes a new instance of the LruCacheTK, T class |
TopProperties
| Name | Description |
---|
| Item |
Reads and writes elements using the key of an element.
|
TopExtension Methods
| Name | Description |
---|
| ToJson | Converts an object to a JSON string representation. (Defined by JSONWriter.) |
TopSee Also