module ActiveRecord::ConnectionAdapters::QueryCache

def lookup_sql_cache(sql, name, binds)

def lookup_sql_cache(sql, name, binds)
  @lock.synchronize do
    if @query_cache[sql].key?(binds)
      ActiveSupport::Notifications.instrument(
        "sql.active_record",
        cache_notification_info(sql, name, binds)
      )
      @query_cache[sql][binds]
    end
  end
end