struct Azu::PerformanceMetrics::CacheMetric

Overview

Cache operation metrics

Included Modules

Defined in:

azu/performance_metrics.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(key : String, operation : String, store_type : String, processing_time : Float64, timestamp : Time, hit : Bool | Nil = nil, key_size : Int32 = 0, value_size : Int32 | Nil = nil, ttl : Time::Span | Nil = nil, error : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def error : String | Nil #

[View source]
def hit : Bool | Nil #

[View source]
def hit? #

[View source]
def key : String #

[View source]
def key_size : Int32 #

[View source]
def miss? #

[View source]
def operation : String #

[View source]
def processing_time : Float64 #

[View source]
def store_type : String #

[View source]
def successful? #

[View source]
def timestamp : Time #

[View source]
def ttl : Time::Span | Nil #

[View source]
def ttl_seconds #

[View source]
def value_size : Int32 | Nil #

[View source]