class Components::Cache::DataChangeInvalidation

Overview

Invalidate cache based on data changes

Defined in:

components/cache/invalidation_strategies.cr

Constructors

Instance Method Summary

Instance methods inherited from class Components::Cache::InvalidationStrategy

invalidate(component : Component, cache_store : CacheStore) : Nil invalidate, should_invalidate?(component : Component, event : InvalidationEvent) : Bool should_invalidate?

Constructor Detail

def self.new(tracked_models : Array(String) = [] of String) #

[View source]

Instance Method Detail

def invalidate(component : Component, cache_store : CacheStore) : Nil #

[View source]
def should_invalidate?(component : Component, event : InvalidationEvent) : Bool #

[View source]