BoxCache Provider
The BoxCache Provider is BoxLang's default, high-performance cache implementation.
Overview
Accessing the BoxCache Provider
// Get the default cache (usually BoxCache provider)
defaultCache = cache();
// Get a named BoxCache instance
userCache = cache("userSessions");
productCache = cache("productCatalog");
// Check cache type
println( "Cache type: " & cache().getType() ); // Outputs: BoxLangCore Storage Operations
Setting Data
Getting Data
Get-or-Set Pattern
Clearing Data
Key Management and Filtering
Getting Cache Keys
Using Cache Filters
Lookup Operations
Statistics and Monitoring
Configuration and Properties
Async Operations
Cache Maintenance
Manual Maintenance Operations
Automatic Maintenance
Event Integration
Conclusion
Last updated
Was this helpful?
