BoxLang 🚀 A New JVM Dynamic Language Learn More...
Copyright Since 2005 ColdBox Platform by Luis Majano
and Ortus Solutions, Corp
www.coldbox.org | www.ortussolutions.com
Because of God's grace, this project exists. If you don't like this, then don't read it, its not for you.
"Therefore being justified by faith, we have peace with God through our Lord Jesus Christ: By whom also we have access by faith into this grace wherein we stand, and rejoice in hope of the glory of God. And not only so, but we glory in tribulations also: knowing that tribulation worketh patience; And patience, experience; and experience, hope: And hope maketh not ashamed; because the love of God is shed abroad in our hearts by the Holy Ghost which is given unto us. ." Romans 5:5
Enterprise Caching Engine for Modern Applications
CacheBox is a powerful, flexible caching framework designed for two modern programming languages:
✨ Use CacheBox Standalone - While part of the ColdBox Platform, CacheBox can be installed and used independently in ANY BoxLang or CFML application without requiring the full ColdBox framework.
19+ Years of Excellence - Since 2006, CacheBox has been battle-tested in enterprise environments worldwide, evolving with modern development practices and industry standards.
Professional Open Source - Backed by Ortus Solutions, CacheBox provides the reliability and support that businesses demand. With dedicated full-time development, comprehensive documentation, and professional services, enterprises can confidently build mission-critical applications on CacheBox.
Enterprise Ready - Trusted by Fortune 500 companies and organizations globally, CacheBox delivers the stability, performance, and long-term support that enterprise applications require. Learn more at www.coldbox.org.
# Install CacheBox independently
box install cachebox
# Or with ColdBox Platform
box install coldbox
// Create CacheBox instance
cacheBox = new cachebox.system.cache.CacheFactory();
// Get cache and use it
cache = cacheBox.getDefaultCache();
cache.set( "myKey", "myValue", 30 );
value = cache.get( "myKey" );
// Or fluently
value = cacheBox.getDefaultCache().getOrSet( "myKey", () => {
return "computedValue";
}, 30 );
// Inject cache in any ColdBox component
property name="cache" inject="cachebox:default";
function index( event, rc, prc ) {
// Use cache in handlers
cache.set( "user:#getUserId()#", getUserData(), 60 );
userData = cache.get( "user:#getUserId()#" );
}
# Standalone CacheBox
box install cachebox
# With ColdBox Platform
box install coldbox
# Bleeding Edge
box install cachebox@be
Enhance your CacheBox development experience with our official VS Code extensions:
Download from VS Code Marketplace | Open VSX Registry
Features:
Download from VS Code Marketplace | Open VSX Registry
Complete development suite including:
BoxLang (Recommended)
CFML Support
Comprehensive documentation is available at: https://cachebox.ortusbooks.com
CacheBox is a professional open source project. Support us by:
// Store and retrieve data
cache.set( "user:123", userData, 60 ); // 60 minutes
cache.set( "temp:data", tempData, 5 ); // 5 minutes
// Conditional operations
if( !cache.lookup( "expensive:data" ) ) {
cache.set( "expensive:data", generateExpensiveData() );
}
// Bulk operations
cache.setMulti( {
"key1": "value1",
"key2": "value2"
}, 30 );
// Get cache statistics
stats = cache.getStats();
writeOutput( "Cache hits: #stats.hits#" );
writeOutput( "Cache misses: #stats.misses#" );
writeOutput( "Hit ratio: #stats.hitRatio#%" );
Apache License, Version 2.0 - See LICENSE file for details.
The ColdBox websites, logos and content have separate licensing and are separate entities.
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12
$
box install cachebox