method
cached_find_by_statement
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::Core::ClassMethods
cached_find_by_statement(key, &block)private
No documentation available.
# File activerecord/lib/active_record/core.rb, line 300
def cached_find_by_statement(key, &block)
cache = @find_by_statement_cache[connection.prepared_statements]
cache[key] || cache.synchronize {
cache[key] ||= StatementCache.create(connection, &block)
}
end