class CQL::Cache::VersionInvalidation

Overview

Version-based invalidation strategy Uses version numbers to invalidate cache entries

Defined in:

cache/invalidation_strategies.cr

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?

Instance Method Detail

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

[View source]
def get_current_version(key : String) : Int64 #

[View source]
def increment_version(key : String) : Int64 #

[View source]
def reset_version(key : String) : Nil #

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

[View source]