method
cached_find_by_statement
rails latest stable - Class:
ActiveRecord::Core::ClassMethods
cached_find_by_statement(key, &block)public
No documentation available.
# File activerecord/lib/active_record/core.rb, line 376
def cached_find_by_statement(key, &block) # :nodoc:
cache = @find_by_statement_cache[connection.prepared_statements]
cache.compute_if_absent(key) { StatementCache.create(connection, &block) }
end