method

lookup_sql_cache

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters::QueryCache
lookup_sql_cache(sql, name, binds) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 115
        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
Register or log in to add new notes.