An implementation of Cache.
More...
An implementation of Cache.
Definition at line 278 of file DataCellCache.cs.
Deveel.Data.Caching.DataCellCache.DCCache.DCCache |
( |
DataCellCache |
cache, |
|
|
ICache |
systemCache, |
|
|
int |
cache_hash_size, |
|
|
int |
max_cache_size |
|
) |
| |
|
inline |
Definition at line 286 of file DataCellCache.cs.
287 : base(systemCache, cache_hash_size) {
int maxCacheSize
The maximum size that the cache can grow to in bytes.
readonly DataCellCache cache
override void Deveel.Data.Caching.DataCellCache.DCCache.CheckClean |
( |
| ) |
|
|
inlineprotected |
Definition at line 307 of file DataCellCache.cs.
314 cache.
context.Stats.Increment(StatsDefaultKeys.DataCellCacheClean);
readonly SystemContext context
The TransactionSystem that this cache is from.
int maxCacheSize
The maximum size that the cache can grow to in bytes.
readonly DataCellCache cache
long CurrentCacheSize
Returns an estimation of the current cache size in bytes.
override void Deveel.Data.Caching.DataCellCache.DCCache.OnGetWalks |
( |
long |
totalWalks, |
|
|
long |
totalGetOps |
|
) |
| |
|
inlineprotected |
Definition at line 330 of file DataCellCache.cs.
331 int avg = (int) ((totalWalks*1000000L)/totalGetOps);
332 cache.
context.Stats.Set(
"DataCellCache.avg_hash_get_mul_1000000", avg);
334 cache.
context.Stats.Set(
"DataCellCache.current_node_count", NodeCount);
readonly SystemContext context
The TransactionSystem that this cache is from.
readonly DataCellCache cache
long CurrentCacheSize
Returns an estimation of the current cache size in bytes.
override void Deveel.Data.Caching.DataCellCache.DCCache.OnWipingNode |
( |
Object |
ob | ) |
|
|
inlineprotected |
Definition at line 322 of file DataCellCache.cs.
323 base.OnWipingNode(ob);
326 var cell = (DataObject)ob;
static int AmountMemory(DataObject cell)
Returns an approximation of the amount of memory taken by a given DataObject.
readonly DataCellCache cache
void ReduceCacheSize(long val)
Evaluate the cache size by the given amount.
void Deveel.Data.Caching.DataCellCache.DCCache.SetCacheSize |
( |
int |
cache_size | ) |
|
|
inline |
Used to dynamically alter the size of the cache.
- Parameters
-
May cause a cache clean if the size is over the limit.
Definition at line 300 of file DataCellCache.cs.
override void CheckClean()
int maxCacheSize
The maximum size that the cache can grow to in bytes.
override bool Deveel.Data.Caching.DataCellCache.DCCache.WipeMoreNodes |
( |
| ) |
|
|
inlineprotected |
Definition at line 318 of file DataCellCache.cs.
int maxCacheSize
The maximum size that the cache can grow to in bytes.
readonly DataCellCache cache
long CurrentCacheSize
Returns an estimation of the current cache size in bytes.
readonly DataCellCache Deveel.Data.Caching.DataCellCache.DCCache.cache |
|
private |
int Deveel.Data.Caching.DataCellCache.DCCache.maxCacheSize |
|
private |
The maximum size that the cache can grow to in bytes.
Definition at line 284 of file DataCellCache.cs.
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Caching/DataCellCache.cs