Method: AvroTurf::CachedConfluentSchemaRegistry#fetch

Defined in:
lib/avro_turf/cached_confluent_schema_registry.rb

#fetch(id) ⇒ Object



31
32
33
# File 'lib/avro_turf/cached_confluent_schema_registry.rb', line 31

def fetch(id)
  @cache.lookup_by_id(id) || @cache.store_by_id(id, @upstream.fetch(id))
end