Introducing Kona Cache: Java-Powered ColdFusion Caching
Andrew Powell
There is a crucial element to this cache provider, the three-element cache key. It is recommended that you use a key in the style of ("myCFCName.myFunctionName.UniqueIdentifier"). The key is structured so that it can properly organize the cache for retrieval. Full documentation is provided in the /doc folder along with the application jar file. To install, simply drop the jar file into your ColdFusion Server's classpath.
To invoke (usually in the application scope, so it can persist through the life of the application) use the following code:
<cfset application.cacheEngine = creatObject('java','com.universalmind.cacheProviders.KonaCache').init()/>
This creates a cache instance with a default of 16 top level objects. If you wish to change this, you can specify it in the init() function.
Like I said earlier, there is a JavaDoc that is included in the download.
Posted in Java | ColdFusion | Caching |
0 comments