class Cache(K, V)

Defined in:

server.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, max_size : Int32 | Nil = nil, expire : Time::Span | Nil = nil, neg_expire : Time::Span | Nil = nil) #

[View source]

Instance Method Detail

def set(key : K, value : V, neg : Bool = false) #

[View source]