instance method
cache_notification_info
Ruby on Rails 7.2.3
Since v6.0.6 PrivateSignature
cache_notification_info(sql, name, binds)
Database adapters can override this method to provide custom cache information.
Parameters
-
sqlreq -
namereq -
bindsreq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 313
def cache_notification_info(sql, name, binds)
{
sql: sql,
binds: binds,
type_casted_binds: -> { type_casted_binds(binds) },
name: name,
connection: self,
transaction: current_transaction.user_transaction.presence,
cached: true
}
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb line 313
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::QueryCache