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



64
65
66
67
68
69
70
71
72
73
74
# File 'lib/entity_cache/store/external.rb', line 64

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