json.cache! [:v1, :unit, unit.id] do json.uuids unit.uuids.map(&:value) json.extract! unit, :name, :code, :num, :int_code, :base, :factor, :measure end