instance method cache_notification_info

Ruby on Rails 8.1.2

Since v6.0.6 Private

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

cache_notification_info(sql, name, binds)

Database adapters can override this method to provide custom cache information.

Parameters

sql req
name req
binds req
Source
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 335
        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 335 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::QueryCache

Type at least 2 characters to search.

↑↓ navigate · open · esc close