WEB-INF.cftags.component coldbox.system.cache.util.CacheStats
This object keeps the cache statistics
Constructor Summary | |
---|---|
init(any<ICacheProvider> cacheProvider)
Constructor. |
Method Summary | |
---|---|
void
|
GCHit()
Record a garbage collection hit. |
void
|
clearStatistics()
Clear the stats. |
void
|
evictionHit()
Record an eviction 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 WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
Constructor
cacheProvider
- The associated cache manager/provider of type: coldbox.system.cache.ICacheProviderMethod Detail |
---|
Record a garbage collection hit
Clear the stats
clearStatistics
in interface
cachebox.build-coldbox.coldbox.system.cache.util.ICacheStats
Record an eviction hit
Get the associated cache provider/manager of type: coldbox.system.cache.ICacheProvider
Get the cache's performance ratio
getCachePerformanceRatio
in interface
cachebox.build-coldbox.coldbox.system.cache.util.ICacheStats
Get the total cache eviction counts
getEvictionCount
in interface
cachebox.build-coldbox.coldbox.system.cache.util.ICacheStats
Get the cache garbage collections
getGarbageCollections
in interface
cachebox.build-coldbox.coldbox.system.cache.util.ICacheStats
Get the cache hits
getHits
in interface
cachebox.build-coldbox.coldbox.system.cache.util.ICacheStats
Get the last reaping date of the cache
getLastReapDatetime
in interface
cachebox.build-coldbox.coldbox.system.cache.util.ICacheStats
Get the stats memento
Get the cache misses
getMisses
in interface
cachebox.build-coldbox.coldbox.system.cache.util.ICacheStats
Get the associated cache's live object count
getObjectCount
in interface
cachebox.build-coldbox.coldbox.system.cache.util.ICacheStats
Record a hit
Record a miss
Set when the last reaping date of the cache was done
lastReapDatetime