instance method
cache_key_with_version
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
cache_key_with_version()
Returns a cache key along with the version.
Source
# File activerecord/lib/active_record/integration.rb, line 114
def cache_key_with_version
if version = cache_version
"#{cache_key}-#{version}"
else
cache_key
end
end
Defined in activerecord/lib/active_record/integration.rb line 114
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Integration