DataCache TKey, TValue provides caching functionality for objects of different types, see list below.
Since the size of the stored objects need to be known to be able to trim the cache size, only a selected subset of types are allowed to be stored.
Objects can be removed from the cache in one of the following situations:
- An object is explicitly removed through a call to Remove(TKey).
- An object has not been fetched within a certain time period. This time period is controlled through a setting.
- The system is running low on memory and therefore the cache is reduced in size.
The owner of the cache is responsible for providing unique keys for each object to store in the cache.
Objects can be removed from the cache in one of the following situations:
- An object is explicitly removed through a call to Remove(TKey).
- An object has not been fetched within a certain time period. This time period is controlled through a setting.
- The system is running low on memory and therefore the cache is reduced in size.
The owner of the cache is responsible for providing unique keys for each object to store in the cache.
Inheritance Hierarchy
Spotfire.Dxp.Data.Collections DataCache TKey, TValue
Namespace: Spotfire.Dxp.Data.Collections
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
Syntax
Type Parameters
- TKey
- The type of the key.
- TValue
- The type of the data to store.
The following types are allowed to use:
PageableList<T>. Note that an object of type PageableList<T> must be in read-only state to be stored in the cache.
int
decimal
double
string
DateTime
BinaryLargeObject
TimeSpan. This is new in 3.1.0.
bool. This is new in 3.1.0.
float. This is new in 3.1.0.
long. This is new in 3.1.0.
DataValue<int>
DataValue<decimal>
DataValue<double>
DataValue<string>
DataValue<DateTime>
DataValue<BinaryLargeObject>
DataValue<TimeSpan>. This is new in 3.1.0.
DataValue<bool>. This is new in 3.1.0.
DataValue<float>. This is new in 3.1.0.
DataValue<long>. This is new in 3.1.0.
Version Information
See Also