method
lookup_sql_cache
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::QueryCache
lookup_sql_cache(sql, name, binds)private
No documentation available.
# 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