class Mosquito::Metadata

Overview

Provides a real-time metadata store. Data is not cached, which allows multiple workers to operate on the same structures in real time.

Each read or write incurs a round trip to the backend.

Defined in:

mosquito/metadata.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(root_key : String, readonly : Bool = false) #

[View source]

Instance Method Detail

def []=(key : String, value : String) #

[View source]
def []?(key : String) : String | Nil #

[View source]
def decrement(key) #

[View source]
def increment(key, by increment : Int32) #

[View source]
def increment(key) #

[View source]
def inspect(*args, **options) #

[View source]
def inspect(*args, **options, &) #

[View source]
def readonly? : Bool #

[View source]
def root_key : String #

[View source]
def root_key=(root_key : String) #

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

[View source]
def to_s(*args, **options) #

[View source]
def to_s(*args, **options, &) #

[View source]