class

Kemal::LRUCache(K, V)

Inherits Reference < Object

Small, private LRU cache used by the router to avoid full cache clears when many distinct paths are accessed. Keeps get/put at O(1). This is intentionally minimal and file-local to avoid API surface.

Constructors

new(capacity : Int32)
Source

Instance methods

get(key : K) : V | Nil
Source
put(key : K, value : V) : Nil
Source
size
Source

Nested types