class CQL::Cache::CacheKeyBuilder

Overview

Cache key builder for complex scenarios

Defined in:

cache/fragment_cache.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(prefix : String = "cql") #

[View source]

Instance Method Detail

def add_component(component : String) : self #

Add a component to the cache key


[View source]
def add_param(key : String, value : DB::Any) : self #

Add a parameter that will be hashed into the key


[View source]
def build : String #

Build the final cache key


[View source]
def reset : self #

Reset the builder for reuse


[View source]