class Matter::Storage::Context

Defined in:

matter/storage/context.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(storage : Base, contexts : Array(String)) #

[View source]

Instance Method Detail

def clear : Void #

Clears all keys in this context.


[View source]
def clear_all : Void #

Clears all keys in this context and all created sub-contexts.


[View source]
def contexts : Array(String) #

[View source]
def create_context(context : String) #

[View source]
def delete(key : String) : Void #

[View source]
def get(key : String, default_value : Type | Nil = nil) : Type #

[View source]
def has(key : String) : Bool #

[View source]
def keys : Array(String) #

[View source]
def set(key : String, value : Type) : Void #

[View source]
def storage : Base #

[View source]