class CQL::Cache::CacheStats

Overview

Cache statistics tracking

Defined in:

cache/cache_stats.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def average_cache_time : Float64 #

[View source]
def average_execution_time : Float64 #

[View source]
def hit_rate : Float64 #

[View source]
def hits : Int64 #

[View source]
def hits=(hits : Int64) #

[View source]
def miss_rate : Float64 #

[View source]
def misses : Int64 #

[View source]
def misses=(misses : Int64) #

[View source]
def reset #

[View source]
def start_time : Int64 #

[View source]
def start_time=(start_time : Int64) #

[View source]
def total_cache_time : Float64 #

[View source]
def total_cache_time=(total_cache_time : Float64) #

[View source]
def total_execution_time : Float64 #

[View source]
def total_execution_time=(total_execution_time : Float64) #

[View source]
def total_requests : Int64 #

[View source]
def total_requests=(total_requests : Int64) #

[View source]
def uptime : Time::Span #

[View source]