Module: EntityCache::Store::External::Put

Defined in:
lib/entity_cache/store/external.rb

Instance Method Summary collapse

Instance Method Details

#put(id, entity, version, time) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
# File 'lib/entity_cache/store/external.rb', line 56

def put(id, entity, version, time)
  logger.trace { "Putting entity (ID: #{id.inspect}, Entity Class: #{entity.class}, Version: #{version.inspect}, Time: #{Clock.iso8601(time)})" }

  return_value = super

  telemetry.record(:put, Telemetry::Data.new(id, entity, version, time))

  logger.debug { "Put entity done (ID: #{id.inspect}, Entity Class: #{entity.class}, Version: #{version.inspect}, Time: #{Clock.iso8601(time)})" }

  return_value
end