class Xssmaze::Store::Group

Overview

A bounded map of key -> bounded list, for the store whose keys the maze invents at runtime (a random callback id). Capping only the lists would still leak one key per request forever, so the key set is capped too — Hash keeps insertion order, so the oldest key is always first_key.

Defined in:

store.cr

Instance Method Summary

Instance methods inherited from class Xssmaze::Store::Collection

clear : Nil clear, name : String name, size : Int32 size

Constructor methods inherited from class Xssmaze::Store::Collection

new(name : String) new

Instance Method Detail

def [](key : String) : Array(String) #

[View source]
def clear : Nil #

[View source]
def push(key : String, value : String) : Nil #

[View source]
def size : Int32 #

[View source]