class

HT2::FrameCache

Inherits Reference < Object

Cache for frequently used frame payloads

Constructors

Instance methods

clear

Clear the cache

Source
get(key : String) : Bytes | Nil

Get cached frame bytes

Source
get_or_set(key : String, & : -> Bytes) : Bytes

Get cached frame bytes or compute and cache

Source