class Matter::Storage::MemoryBackend

Defined in:

matter/storage/memory_backend.cr

Instance Method Summary

Instance methods inherited from class Matter::Storage::Base

clear : Nil clear, clear_all(contexts : Array(String)) : Nil clear_all, contexts(contexts : Array(String)) : Array(String) contexts, delete(contexts : Array(String), key : String) : Nil delete, get(contexts : Array(String), key : String) : Type get, initialized? : Bool initialized?, keys(contexts : Array(String)) : Array(String) keys, set(contexts : Array(String), key : String, value : Type) : Nil set, start : Nil start, stop : Nil stop, values(contexts : Array(String)) : Hash(String, Type) values

Instance Method Detail

def clear : Nil #

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

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

Get list of immediate subcontext names


[View source]
def delete(contexts : Array(String), key : String) : Nil #

[View source]
def get(contexts : Array(String), key : String) : Type #

[View source]
def initialized? : Bool #

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

[View source]
def set(contexts : Array(String), key : String, value : Type) : Nil #

[View source]
def set(contexts : Array(String), values : Hash(String, Type)) : Nil #

Set multiple key-value pairs at once


[View source]
def start : Nil #

[View source]
def stop : Nil #

[View source]
def store : Hash(String, Type) #

[View source]
def values(contexts : Array(String)) : Hash(String, Type) #

Get all key-value pairs in a context


[View source]