class

LavinMQ::ParameterStore(T)

Inherits Enumerable < Reference < Object

Constants

Log = LavinMQ::Log.for("parameter_store")

Constructors

new(data_dir : String, file_name : String, replicator : Clustering::Replicator | Nil, vhost : String | Nil = nil)
Source

Instance methods

[](id) : T
Source
[]?(id) : T | Nil
Source
apply(parameter : Parameter | Nil = nil, &)
Source
create(parameter : T, save = true)
Source
delete(id, save = true) : T | Nil
Source
each

Must yield this collection's elements to the block.

Source
each_value
Source
empty?

Returns true if self does not contain any element.

([] of Int32).empty? # => true
([1]).empty?         # => false
[nil, false].empty?  # => false
  • #present? returns the inverse.
Source
has_key?(id) : Bool
Source
save!
Source
size

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4
Source
to_json(json : JSON::Builder)
Source
values
Source