class Components::Cache::StateChangeInvalidation

Overview

Invalidate cache when component state changes

Defined in:

components/cache/invalidation_strategies.cr

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?

Instance Method Detail

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

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

[View source]