class
CQL::Configure::CacheConfig
- CQL::Configure::CacheConfig
- Reference
- Object
Overview
Cache settings, set through config.cache inside CQL.configure.
Defined in:
configure/cache_config.crConstructors
Instance Method Summary
-
#auto_cleanup : Bool
Auto-cleanup expired items
-
#auto_cleanup=(auto_cleanup : Bool)
Auto-cleanup expired items
-
#auto_cleanup? : Bool
Check if auto-cleanup is enabled
-
#auto_clear : Bool
Auto-clear request cache after each request
-
#auto_clear=(auto_clear : Bool)
Auto-clear request cache after each request
-
#batch_ops : Bool
Enable batch operations for better performance
-
#batch_ops=(batch_ops : Bool)
Enable batch operations for better performance
-
#cache_statistics : Hash(String, String | Int32 | Int64 | Float64 | Bool)
Get comprehensive cache statistics
-
#cleanup_interval : Time::Span
How often to run cleanup
-
#cleanup_interval=(cleanup_interval : Time::Span)
How often to run cleanup
-
#create_cache_interface_config : CQL::Cache::CacheConfig
Create CacheInterface configuration object
-
#create_invalidation_strategy : CQL::Cache::InvalidationStrategy
Get invalidation strategy instance
-
#fragment_tags : Bool
Enable tagging for fragments
-
#fragment_tags=(fragment_tags : Bool)
Enable tagging for fragments
-
#fragment_versions : Bool
Enable versioning for fragments
-
#fragment_versions=(fragment_versions : Bool)
Enable versioning for fragments
-
#fragments : Bool
Enable fragment/partial caching
-
#fragments=(fragments : Bool)
Enable fragment/partial caching
-
#fragments? : Bool
Check if fragment cache is enabled
-
#invalidation : String
Invalidation strategy: "timestamp", "version", "transaction_aware"
-
#invalidation=(invalidation : String)
Invalidation strategy: "timestamp", "version", "transaction_aware"
-
#key_prefix : String
Prefix for cache keys (useful for multi-app environments)
-
#key_prefix=(key_prefix : String)
Prefix for cache keys (useful for multi-app environments)
-
#log_level : Log::Severity
Log level for cache operations
-
#log_level=(log_level : Log::Severity)
Log level for cache operations
-
#logging : Bool
Enable cache operation logging
-
#logging=(logging : Bool)
Enable cache operation logging
-
#logging? : Bool
Check if logging is enabled
-
#max_age : Time::Span
Maximum age before automatic invalidation
-
#max_age=(max_age : Time::Span)
Maximum age before automatic invalidation
-
#memory : Bool
Enable in-memory caching
-
#memory=(memory : Bool)
Enable in-memory caching
-
#memory? : Bool
Check if memory cache is enabled
-
#memory_size : Int32 | Nil
Maximum number of items in memory cache
-
#memory_size=(memory_size : Int32 | Nil)
Maximum number of items in memory cache
-
#memory_stats : Bool
Track memory cache statistics
-
#memory_stats=(memory_stats : Bool)
Track memory cache statistics
-
#middleware : Bool
Enable web framework middleware integration
-
#middleware=(middleware : Bool)
Enable web framework middleware integration
-
#middleware? : Bool
Check if middleware integration is enabled
-
#name : String
Cache instance name
-
#name=(name : String)
Cache instance name
-
#on : Bool
Main cache enable/disable switch
-
#on=(on : Bool)
Main cache enable/disable switch
-
#on? : Bool
Check if cache is enabled
-
#performance_summary : String
Performance summary for all cache systems
-
#request_cache : Bool
Enable per-request query caching (great for web apps)
-
#request_cache=(request_cache : Bool)
Enable per-request query caching (great for web apps)
-
#request_cache? : Bool
Check if request cache is enabled
-
#request_id_header : String
HTTP header for request ID
-
#request_id_header=(request_id_header : String)
HTTP header for request ID
-
#request_size : Int32
Maximum items per request cache
-
#request_size=(request_size : Int32)
Maximum items per request cache
-
#reset_cache_statistics : Nil
Reset all cache statistics
-
#setup_cache_system : Nil
Configure the global cache system
-
#stats : Bool
Enable cache statistics collection
-
#stats=(stats : Bool)
Enable cache statistics collection
-
#stats? : Bool
Check if statistics are enabled
-
#ttl : Time::Span
Default time-to-live for cached items
-
#ttl=(ttl : Time::Span)
Default time-to-live for cached items
- #validate! : Nil
Constructor Detail
Instance Method Detail
Get comprehensive cache statistics
Create CacheInterface configuration object
Get invalidation strategy instance
Invalidation strategy: "timestamp", "version", "transaction_aware"