The Ortus BlogBox

"Ortus: A rise, beginning, coming into being, born, the origin!"

 

 

Category Filtering: 'cachebox'

 

Introducing CacheBack - A caching WireBox aspect

Curt Gratz
Feb 01, 2013

 

 


ColdBox-CacheBack

A cool annotation based Caching Aspect for WireBox/ColdBox that provides caching without blocking requests during refresh

This interceptor will inspect objects for the 'cacheBack' annotation and if found, it will wrap it in a thread creating cache. This allows the function to be cached without waiting for it to refresh. Inspiration from God and from this library. http://django-cacheback.readthedocs.org/en/latest/

This aspect is a self binding
aspect for WireBox that registers itself using the annotations below
You can control the refresh rate for your cache and the timeout in a number of ways
    1) You can add an annotation to your method called refreshRate and timeout
        ie function myFunction() cacheback refreshRate=120 timeout=240 {}
        This will set cache to refresh every 2 mins and timeout every 4 mins.
    2) You can add a settings to your coldbox config called cacheBack.  The setting will be a structure with
       keys of refreshRate and timeout
        cacheBack = {refreshRate=60,timeout=120}
        This will set cache to refresh every 60 secs and timeout every 120 secs.
    3) You can use our default timeouts which are a refresh rate 18 mins and a timeout of 20 mins
All refresh rates and timeouts are in seconds

To activate this aspect you will need to map it in your WireBox binder.  This can be done like below
mapAspect("cacheBack").to("model.aspects.cacheBack");
Then all you need to do is add the annotation cachback to your methods
myFunction() cacheback refreshRate=120 timeout=240 {}

Keep in mind like all things caching, testing and tuning is very important. This can be used in very specific scenarios when you want to keep cache refreshing, but don't want users to wait for the refresh.

The GitHub repo is available at https://github.com/gratzc/ColdBox-CacheBack

You can also download from our ForgeBox http://www.coldbox.org/forgebox/view/CacheBack

Hope you enjoy.

 

CacheBox, ColdBox MVC, Interceptors, WireBox 1

Ortus Products Available As Railo Extensions

Luis Majano
Dec 08, 2012

 

We are proud to announce the availability of all our major products as Railo Extensions today.  Railo is an incredible open source ColdFusion engine that supports all of our products with 1 click installs.  The extensions that we have made available starting today are:

With a few easy steps you can install any of our products:

Step 1: Log in to your Railo web administrator

Step 2: Click on the "Applications" menu

Step 3: Select any of our products and click install.

 

CacheBox, ColdBox MVC, ColdFusion, Community, ContentBox CMS, LogBox, TestBox, WireBox 0

ColdBox Platform 3.5.3 Release Galore!

Luis Majano
Nov 03, 2012

 

We are proud to announce yet another release of our ColdBox Platform version 3.5.3.   This is not only a full platform release but a whole set of releases of all of our internal projects and frameworks.  Here are the releases and their appropriate release information from our engineering blog:

 

CacheBox, ColdBox MVC, ColdFusion, News, Releases, TestBox, WireBox 0

CacheBox 1.4 Released!

Luis Majano
Nov 03, 2012

 

logo

We are proud to announce CacheBox version 1.4. This is an important patch release that we recommend all customers to upgrade to especially if you are using CacheBox with Railo. You can read our What's new with CacheBox 1.4 to get a better idea of this release.

Below are the major areas we concentrated in this release:

 

 

Fixes

  • Railo important issues when setting cache items into Railo providers. CacheBox was not setting the timespans correctly.
  • Better reporting output control
  • Enhanced HTML output for CacheBox Reports

Resources:

CacheBox, ColdBox MVC, News, Releases 0

Press Release: CacheBox Book

Frank Pimentel
Aug 04, 2012

 

CacheBox is an enterprise caching engine, aggregator, and API for ColdFusion applications. It is part of the ColdBox ColdFusion Development Platform, but it can also function on its own as a standalone framework so it can be used in any ColdFusion application or framework.

CacheBox, News, Releases 0

New CacheBox Book Released!

Brad Wood
Aug 04, 2012

 

 

We are very excited to announce the release of Luis Majano's latest work, CacheBox : Scaling Your ColdBox Applications.  Now we have a definitive book on CacheBox- The Enterprise Caching Engine, Aggregator, and API which can be used stand-alone or alongside the ColdBox framework.  

You can score yourself a copy of the book in printed, eBook, or Kindle form right now.

CacheBox, ColdBox MVC, News 1

CacheBox 1.3.2 Released!

Luis Majano
Aug 02, 2012

 

logo

We are proud to announce CacheBox version 1.3.2. This is an important patch release that we recommend all customers to upgrade to. There are no compatiblity issues and it contains many fixes especially to our JDBC object stores. You can read our What's new with CacheBox 1.3.2 to get a better idea of this release.

Below are the major areas we concentrated in this release:

 

 

Fixes

  • JDBCStore provider does not calculate the correct IDs for objects
  • The JDBCStore does not provide reporting on the content reports
  • LastAccessed mispelled throughout and fixed
  • Updated CacheBox policies to clear on evictions instead of mark of death, as it can potentially wipe out more keys if size never gets reduced

Thanks for always supporting us and a great ColdBox Developer Week!

Resources:

CacheBox, ColdBox MVC, News, Releases 0

ColdBox 3.5.2 Released!

Luis Majano
Aug 02, 2012

 

logo

We are proud to announce yet another ColdBox Platform release version 3.5.2. This is an important patch release that addresses many concurrency issues and gives you stability and of course some goodies. This release also encompasses a new WireBox release (v1.5.0) and a new CacheBo release (v1.3.2). Here are our "What's New" guidelines:

Below are the major areas we concentrated in this release:

Fixes

  • Theading locking issues while using the logbox asynchronous appender, file rotation and cachebox reaping.
  • Concurrency issue when registering interceptors, plugins, and handlers dynamically. Mixups under heavy load.
  • Updated CacheBox fixes up to 1.3.2
  • Updated WireBox fixes up to 1.5.0
  • SSL relocations via SES interceptor where not working correctly on full URL paths
  • Mail payloads empty server fixes when sending mail with no server
  • RSS reader plugin exception under railo due to URL scope usage

Enhancements

  • Validation result object has two new convenience methods: getAllErrorsAsStruct(), getAllErrorsAsJSON() so you can get flat representations of your object/form validations. Great for UI or JavaScript integrations.
  • Mail addAttachments() method now has a remove argument you can use to remove the attachment once email is sent.
  • New caching enhancement for renderView() and renderExternalView(). New argument cacheProvider so you can now override the default template provider with whatever provider you like.
  • HTML helper new methods: emailField(), URLField() for generating HTML5 email and URL fields.

Thanks for always supporting us and a great ColdBox Developer Week!

Resources:

CacheBox, ColdBox MVC, LogBox, News, Releases, TestBox, WireBox 0

Tip Of The Week: Using ColdFusion's EHCache with CacheBox

Brad Wood
Aug 01, 2012

 

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. 

CacheBox, ColdBox MVC, Tutorials 0

CacheBox: Caching Engine & Cache Aggregator v1.3.1 Released

Luis Majano
Mar 27, 2012

 

We have just launched a new version to our favorite caching engine and aggregator: CacheBox.  To read the full details and milestone news, please click on the resources below:

 

 

CacheBox, ColdBox MVC, ColdFusion, News, Releases 0