class CQL::Cache::RedisCache::Config

Overview

Configuration for Redis connection

Defined in:

cache/redis_cache.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(url : String = "redis://localhost:6379/0", key_prefix : String = "cql", connection_pool_size : Int32 = 25, connection_timeout : Time::Span = 5.seconds, command_timeout : Time::Span = 5.seconds, reconnect_attempts : Int32 = 3) #

[View source]

Instance Method Detail

def command_timeout : Time::Span #

[View source]
def command_timeout=(command_timeout : Time::Span) #

[View source]
def connection_pool_size : Int32 #

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

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

[View source]
def connection_timeout=(connection_timeout : Time::Span) #

[View source]
def key_prefix : String #

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

[View source]
def reconnect_attempts : Int32 #

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

[View source]
def url : String #

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

[View source]