File: //usr/local/rvm/gems/ruby-2.7.4/doc/activerecord-6.1.4.1/ri/ActiveRecord/Relation/cache_key-i.ri
U:RDoc::AnyMethod[iI"cache_key:ETI"%ActiveRecord::Relation#cache_key;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"IReturns a stable cache key that can be used to identify this query. ;TI"@The cache key is built with a fingerprint of the SQL query.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"BProduct.where("name like ?", "%Cosmic Encounter%").cache_key
;TI"<# => "products/query-1850ab3d302391b85b8693e941286659"
;T:@format0o;
; [I"PIf ActiveRecord::Base.collection_cache_versioning is turned off, as it was ;TI"Iin Rails 6.0 and earlier, the cache key will also include a version.;T@o;; [I"<ActiveRecord::Base.collection_cache_versioning = false
;TI"BProduct.where("name like ?", "%Cosmic Encounter%").cache_key
;TI"V# => "products/query-1850ab3d302391b85b8693e941286659-1-20150714212553907087000"
;T;
0o;
; [I"OYou can also pass a custom timestamp column to fetch the timestamp of the ;TI"last updated record.;T@o;; [I"HProduct.where("name like ?", "%Game%").cache_key(:last_reviewed_at);T;
0:
@fileI""lib/active_record/relation.rb;T:0@omit_headings_from_table_of_contents_below000[ I"&(timestamp_column = "updated_at");T@$FI"
Relation;TcRDoc::NormalClass00