instance method
lookup_sql_cache
Ruby on Rails 7.0.10
Since v7.0.10 PrivateSignature
lookup_sql_cache(sql, name, binds)
No documentation comment.
Parameters
-
sqlreq -
namereq -
bindsreq
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
Defined in activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb line 115
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::QueryCache