class Gauge::DataStore
@api public
Public Class Methods
Public Instance Methods
Source
# File lib/datastore.rb, line 18 def get(key) @data_map[key] end
Fetches the object corresponding to the given key @param key [string], the key for retrieving object. @return [object]
Source
# File lib/datastore.rb, line 25 def put(key, value) @data_map[key] = value end
Stores the object against the given key @param key [string], the key for storing the object, has to be unique @param value [object], the object to be persisted