class
Components::Cache::Configuration
- Components::Cache::Configuration
- Reference
- Object
Overview
Cache configuration for the component system
Defined in:
components/cache/configuration.crConstructors
Instance Method Summary
-
#apply! : Nil
Apply configuration to all components
-
#default_expires_in : Time::Span
Default expiration time
-
#default_expires_in=(default_expires_in : Time::Span)
Default expiration time
-
#disable! : Nil
Disable caching
-
#enable! : Nil
Enable caching
-
#enabled : Bool
Whether caching is enabled
-
#enabled=(enabled : Bool)
Whether caching is enabled
-
#key_prefix : String
Cache key prefix
-
#key_prefix=(key_prefix : String)
Cache key prefix
-
#log_enabled : Bool
Whether to log cache hits/misses
-
#log_enabled=(log_enabled : Bool)
Whether to log cache hits/misses
-
#store : CacheStore | Nil
The active cache store
-
#store=(store : CacheStore | Nil)
The active cache store
-
#track_stats : Bool
Cache statistics tracking
-
#track_stats=(track_stats : Bool)
Cache statistics tracking
-
#use_custom_cache(store : CacheStore) : Nil
Configure custom cache store
-
#use_memory_cache : Nil
Configure memory cache
-
#use_redis_cache(prefix : String = @key_prefix) : Nil
Configure Redis cache NOTE: Redis parameter will be added when Redis shard is installed
Constructor Detail
Instance Method Detail
def use_redis_cache(prefix : String = @key_prefix) : Nil
#
Configure Redis cache
NOTE Redis parameter will be added when Redis shard is installed