class CQL::Cache::TimestampInvalidation

Overview

Timestamp-based invalidation strategy Invalidates cache entries based on their age

Defined in:

cache/invalidation_strategies.cr

Constructors

Instance Method Summary

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

generate_metadata(key : String) : Hash(String, String) generate_metadata, should_invalidate?(key : String, metadata : Hash(String, String)) : Bool should_invalidate?

Constructor Detail

def self.new(max_age : Time::Span = 1.hour) #

[View source]

Instance Method Detail

def generate_metadata(key : String) : Hash(String, String) #

[View source]
def should_invalidate?(key : String, metadata : Hash(String, String)) : Bool #

[View source]