Module: IdentityCache::WithPrimaryIndex
- Extended by:
- ActiveSupport::Concern
- Includes:
- WithoutPrimaryIndex
- Included in:
- IdentityCache
- Defined in:
- lib/identity_cache/with_primary_index.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary
Constants included from CacheInvalidation
CacheInvalidation::CACHE_KEY_NAMES
Constants included from CacheKeyGeneration
CacheKeyGeneration::DEFAULT_NAMESPACE
Instance Method Summary collapse
- #expire_cache ⇒ Object
- #expire_primary_index ⇒ Object private
- #primary_cache_index_key ⇒ Object private
Methods included from WithoutPrimaryIndex
Methods included from CacheInvalidation
Methods included from QueryAPI
Methods included from CacheKeyGeneration
denormalized_schema_hash, denormalized_schema_string, schema_to_string
Instance Method Details
#expire_cache ⇒ Object
8 9 10 11 |
# File 'lib/identity_cache/with_primary_index.rb', line 8 def expire_cache expire_primary_index super end |
#expire_primary_index ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/identity_cache/with_primary_index.rb', line 14 def expire_primary_index # :nodoc: self.class.expire_primary_key_cache_index(id) end |
#primary_cache_index_key ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/identity_cache/with_primary_index.rb', line 19 def primary_cache_index_key # :nodoc: self.class.cached_primary_index.cache_key(id) end |