lucee.Componentcachebox.system.cache.util.CacheStats
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This is a cache statistics object. We do not use internal method calls but leverage the properties directly so it is faster.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any<ICacheProvider>
|
cacheProvider
The associated cache manager/provider of type: cachebox.
|
true
|
false
|
|
any
|
evictionCount
Eviction counts.
|
0
|
true
|
false
|
any
|
garbageCollections
Garbage collection counts.
|
0
|
true
|
false
|
any
|
hits
Cache hits.
|
0
|
true
|
false
|
any
|
lastReapDateTime
Recording of last reap.
|
true
|
false
|
|
any
|
misses
Cache misses.
|
0
|
true
|
false
|
Constructor Summary | |
---|---|
init(any<ICacheProvider> cacheProvider)
Constructor. |
Method Summary | |
---|---|
CacheStats
|
GCHit()
Record an garbage collection hit. |
any
|
clearStatistics()
Clear the stats. |
CacheStats
|
evictionHit()
Record an eviction hit. |
any
|
getAssociatedCache()
Get the associated cache provider/manager of type: cachebox. |
numeric
|
getCachePerformanceRatio()
Get the cache's performance ratio. |
string
|
getCacheProvider()
|
numeric
|
getEvictionCount()
Get the total cache's eviction count. |
numeric
|
getGarbageCollections()
Get the total cache's garbage collections. |
numeric
|
getHits()
Get the total cache's hits. |
any
|
getLastReapDatetime()
Get the date/time of the last reap the cache did. |
struct
|
getMemento()
A quick snapshot of the stats state. |
numeric
|
getMisses()
Get the total cache's misses. |
numeric
|
getObjectCount()
Get the associated cache's live object count. |
CacheStats
|
hit()
Record an cache hit. |
CacheStats
|
miss()
Record an cache miss. |
any
|
setCacheProvider(any cacheProvider)
|
any
|
setEvictionCount(any evictionCount)
|
any
|
setGarbageCollections(any garbageCollections)
|
any
|
setHits(any hits)
|
any
|
setLastReapDateTime(any lastReapDateTime)
|
any
|
setMisses(any misses)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
cacheProvider
- The associated cache manager/provider of type: cachebox.system.cache.providers.ICacheProviderProperty Detail |
---|
The associated cache manager/provider of type: cachebox.system.cache.providers.ICacheProvider
access
- publicrequired
- falsereturntype
- anydoc_generic
- cachebox.system.cache.providers.ICacheProviderserializable
- trueEviction counts
access
- publicrequired
- falsereturntype
- anyserializable
- trueGarbage collection counts
access
- publicrequired
- falsereturntype
- anyserializable
- trueCache hits
access
- publicrequired
- falsereturntype
- anyserializable
- trueRecording of last reap
access
- publicrequired
- falsereturntype
- anyserializable
- trueCache misses
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Record an garbage collection hit
Clear the stats
clearStatistics
in interface
IStats
Record an eviction hit
Get the associated cache provider/manager of type: cachebox.system.cache.providers.ICacheProvider
Get the cache's performance ratio
getCachePerformanceRatio
in interface
IStats
Get the total cache's eviction count
getEvictionCount
in interface
IStats
Get the total cache's garbage collections
getGarbageCollections
in interface
IStats
Get the total cache's hits
getHits
in interface
IStats
Get the date/time of the last reap the cache did
getLastReapDatetime
in interface
IStats
A quick snapshot of the stats state
Get the total cache's misses
getMisses
in interface
IStats
Get the associated cache's live object count
getObjectCount
in interface
IStats
Record an cache hit
Record an cache miss
cacheProvider
evictionCount
garbageCollections
hits
lastReapDateTime
misses