class LavinMQ::Deduplication::MemoryCache(T)

Defined in:

lavinmq/deduplication.cr

Constructors

Instance Method Summary

Instance methods inherited from class LavinMQ::Deduplication::Cache(T)

contains?(key : T) : Bool contains?, insert(key : T, ttl : UInt32 | Nil) insert

Constructor Detail

def self.new(size : UInt32 | Nil = nil) #

[View source]

Instance Method Detail

def contains?(key : T) : Bool #

[View source]
def insert(key : T, ttl : UInt32 | Nil = nil) #

[View source]