class Azu::Cache::Configuration

Overview

Cache configuration

Defined in:

azu/cache.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def cache_cleanup_interval : Int32 #

Memory store cleanup configuration


[View source]
def cache_cleanup_interval=(cache_cleanup_interval : Int32) #

Memory store cleanup configuration


[View source]
def cache_cleanup_interval_span : Time::Span #

[View source]
def cache_connection_retries : Int32 #

Connection retry configuration


[View source]
def cache_connection_retries=(cache_connection_retries : Int32) #

Connection retry configuration


[View source]
def cache_connection_retry_delay : Int32 #

[View source]
def cache_connection_retry_delay=(cache_connection_retry_delay : Int32) #

[View source]
def compress=(compress : Bool) #

[View source]
def compress? : Bool #

[View source]
def default_ttl : Int32 #

[View source]
def default_ttl=(default_ttl : Int32) #

[View source]
def enabled=(enabled : Bool) #

[View source]
def enabled? : Bool #

[View source]
def file_cache_path : String #

File cache configuration


[View source]
def file_cache_path=(file_cache_path : String) #

File cache configuration


[View source]
def file_cache_permissions : Int32 #

[View source]
def file_cache_permissions=(file_cache_permissions : Int32) #

[View source]
def key_prefix : String #

[View source]
def key_prefix=(key_prefix : String) #

[View source]
def max_size : Int32 #

[View source]
def max_size=(max_size : Int32) #

[View source]
def redis_operation_timeout : Int32 #

[View source]
def redis_operation_timeout=(redis_operation_timeout : Int32) #

[View source]
def redis_operation_timeout_span : Time::Span #

[View source]
def redis_pool_size : Int32 #

[View source]
def redis_pool_size=(redis_pool_size : Int32) #

[View source]
def redis_timeout : Int32 #

[View source]
def redis_timeout=(redis_timeout : Int32) #

[View source]
def redis_timeout_span : Time::Span #

[View source]
def redis_url : String #

Redis-specific configuration


[View source]
def redis_url=(redis_url : String) #

Redis-specific configuration


[View source]
def serialize=(serialize : Bool) #

[View source]
def serialize? : Bool #

[View source]
def store : String #

[View source]
def store=(store : String) #

[View source]
def ttl_span : Time::Span #

[View source]