struct Sepia::CacheManager::Stats

Overview

Cache statistics

Defined in:

sepia/cache_manager.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(max_size : Int32) #

[View source]

Instance Method Detail

def evictions : Int64 #

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

[View source]
def hit_rate : Float64 #

[View source]
def hits : Int64 #

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

[View source]
def invalidations : Int64 #

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

[View source]
def max_size : Int32 #

[View source]
def max_size=(max_size : Int32) #

[View source]
def misses : Int64 #

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

[View source]
def size : Int32 #

[View source]
def size=(size : Int32) #

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]