Trying to decide whether to use ColdFusion's EHCache implemention or CacheBox? You don't have to choose one or the other! CacheBox is a cache aggregator, which means it lets you use the same standard API to interact with any number of different cache providers-- including EHCache.
To configure an EHCache provider in CacheBox (assumming your using Adobe CF 9.0.1 and up, of course) add the following struct to the "caches" object in your CacheBox config.
myCoolCache = {
provider = "coldbox.system.cache.providers.CFProvider"
}
That's it!
Now you can grab that cache by name from CacheBox and start using it:
cacheBox.getCache("myCoolCache").set("myKey","myValue");
cacheBox.getCache("myCoolCache").get("myKey");
More info here: http://wiki.coldbox.org/wiki/CacheBox.cfm#CF_Providers
P.S. Please note that you can configure more than 1 CFProvider cache engine in your applications that can talk to more than one referenced ColdFusion (EHCache) custom cache. Just use the cacheName property to tell the CFProvider which EHCache instance to use.
Blog
Recent Entries
BoxLang AI 3.4.0: Gateways, Human-in-the-Loop, and a Full Security Stack
BoxLang AI 3.4.0 is one of the biggest releases in the module's history, and it is built around a single theme: trust. Every agent you ship eventually needs a human to step in, and every agent that reads untrusted content is a target for prompt injection. This release gives you both a proper answer.
Luis Majano
Luis Majano
September
01,
2026
Ortus & BoxLang August Recap 2026
Product Releases & Tools
-
bx-toml: Native TOML Support for BoxLang
This post introduces bx-toml 1.0.0, a new BoxLang module providing native TOML parsing and serialization. It ad...
Victor Campos
Victor Campos
August
31,
2026
Add Your Comment