railo-context.Component coldbox.system.cache.util.CacheStats
This object keeps the cache statistics
Constructor Summary | |
---|---|
init(any<ICacheProvider> cacheProvider)
Constructor. |
Method Summary | |
---|---|
void
|
clearStatistics()
Clear the stats. |
void
|
evictionHit()
Record an eviction hit. |
void
|
GCHit()
Record a garbage collection hit. |
any<ICacheProvider>
|
getAssociatedCache()
Get the associated cache provider/manager of type: coldbox. |
any
|
getCachePerformanceRatio()
Get the cache's performance ratio. |
any
|
getEvictionCount()
Get the total cache eviction counts. |
any
|
getGarbageCollections()
Get the cache garbage collections. |
any
|
getHits()
Get the cache hits. |
any
|
getLastReapDatetime()
Get the last reaping date of the cache. |
any
|
getMemento()
Get the stats memento. |
any
|
getMisses()
Get the cache misses. |
any
|
getObjectCount()
Get the associated cache's live object count. |
void
|
hit()
Record a hit. |
void
|
miss()
Record a miss. |
void
|
setLastReapDatetime(string lastReapDatetime)
Set when the last reaping date of the cache was done. |
Methods inherited from class railo-context.Component |
---|
None |
Constructor Detail |
---|
Constructor
cacheProvider
- The associated cache manager/provider of type: coldbox.system.cache.ICacheProviderMethod Detail |
---|
Clear the stats
clearStatistics
in interface
ICacheStats
Record an eviction hit
Record a garbage collection hit
Get the associated cache provider/manager of type: coldbox.system.cache.ICacheProvider
Get the cache's performance ratio
getCachePerformanceRatio
in interface
ICacheStats
Get the total cache eviction counts
getEvictionCount
in interface
ICacheStats
Get the cache garbage collections
getGarbageCollections
in interface
ICacheStats
Get the cache hits
getHits
in interface
ICacheStats
Get the last reaping date of the cache
getLastReapDatetime
in interface
ICacheStats
Get the stats memento
Get the cache misses
getMisses
in interface
ICacheStats
Get the associated cache's live object count
getObjectCount
in interface
ICacheStats
Record a hit
Record a miss
Set when the last reaping date of the cache was done
lastReapDatetime