rack-cache icon indicating copy to clipboard operation
rack-cache copied to clipboard

TorqueBoxStore back-end support

Open rurounijones opened this issue 14 years ago • 3 comments

This ticket is a request to add the Infinispan backed TorqueBoxStore (http://torquebox.org/documentation/1.0.1/web.html#caching) caching system to Rack::Cache for jruby users running on Torquebox.

The Torquebox devs have already created a back-end for for ActiveSupport caching (ActiveSupport::Cache::TorqueBoxStore) which could probably be adapted / used as a base for this.

I am having a look at doing this myself ($deity have mercy on us all) but since Rack::Cache will be included and enabled by default on Rails 3.1 this might be done by the Torquebox devs.

Either way I thought I would add a ticket here for feedback purposes.

rurounijones avatar May 27 '11 02:05 rurounijones

Cool.

I have a feeling we're going to receive a number of these new cache store backends. I'd like to figure out a sane way of managing them, possibly packaged as separate gems. For now, I plan to accept patches for new stores into rack-cache itself. We'll see how that scales I guess.

rtomayko avatar May 27 '11 07:05 rtomayko

Looking at the current source code, wouldn't it be easier to manage if each back-end had their own entity and meta files along the lines of:

rack-cache/lib/rack/cache/memcache/entitystore.rb
rack-cache/lib/rack/cache/memcache/metastore.rb
rack-cache/lib/rack/cache/disk/entitystore.rb
rack-cache/lib/rack/cache/disk/metastore.rb
rack-cache/lib/rack/cache/heap/entitystore.rb
rack-cache/lib/rack/cache/heap/metastore.rb

etc.

Might make organising things easier.

rurounijones avatar May 27 '11 07:05 rurounijones

Yes. Definitely the plan. Probably each will have a single source file that defines both the meta and entity store.

rtomayko avatar May 27 '11 07:05 rtomayko