Flowdock
method

cached_find_by_statement

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ClassMethods
cached_find_by_statement(key, &block) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/core.rb, line 282
      def cached_find_by_statement(key, &block) # :nodoc:
        cache = @find_by_statement_cache[connection.prepared_statements]
        cache[key] || cache.synchronize {
          cache[key] ||= StatementCache.create(connection, &block)
        }
      end
Register or log in to add new notes.