News and Blog

Cache-Money for Ruby on Rails

January 28th, 2010 » No Comments »

In doing some optimization for the back-end of the top selling iPhone application Word with Friends we put Cache-Money a write-through caching library for ActiveRecord to the test.  So what exactly does that mean?

Read-Through:

Queries like User.find(:all, :conditions => ...) will first look in Memcached and then look in the database for the results of that query. If there is a cache miss, it will populate the cache.

Write-Through:

As objects are created, updated, and deleted, all of the caches are automatically kept up-to-date and coherent.

Add to this that cache-money also supports multiple query types, multiple indices, ordered indices, window indices, calculations, version numbers, transactions, rollbacks, mocks, locks and local caches, and it gets impressive pretty quick.  If you are looking for caching to optimizing.  Show me the money.. er cache-money.

Leave a Reply

What People are Saying

"We love working with Integrum — they always get excited about new projects and changes we want to make to the site, and their enthusiasm for web design and development really shows. They’re also great at explaining things in “layman’s terms” for those of us who aren’t so tech-savvy."

— Jackie, www.rattlebox.com

Announcements

MountainWest RubyConf 2009

We’re sponsoring this years MountainWest RubyConf, March 13-14. Are you going? You should be there – we will be! For more information visit http://mtnwestrubyconf.org/2009/.

Gangplank Hacknight

What is Hacknight? The best way to find out is show up. It is whatever we make it.

Gangplank Academy

Come to Gangplank, same address as Integrum, each Wednesday at 11:45 a.m. for brown bag lunch and a presentation.

Calling all Rails Nerds!

We want you (to work for us)! Drop us a line at hr@integrumtech.com.


Press Room

Where We’re At:

  1. Hacknight Every Wed.
  2. Gangplank Academy Brownbag Wednesdays
  3. SXSW Mar 12th-17th
  4. Mountain West Ruby ConfMar 11th-12th

Updates