Method: Gauge::DataStore#put

Defined in:
lib/datastore.rb

#put(key, value) ⇒ Object

Stores the object against the given key

Parameters:

  • key (string)

    , the key for storing the object, has to be unique

  • value (object)

    , the object to be persisted



37
38
39
# File 'lib/datastore.rb', line 37

def put(key, value)
  @data_map[key] = value
end