Git Product home page Git Product logo

activesupport-jbosscache's Introduction

ActiveSupport::Cache::JbossCacheStore

This is ActiveSupport::Cache::JbossCacheStore, an ActiveSupport::Cache::Store implementation which uses JBoss Cache available with JBoss Application Servers like TorqueBox (formerly known as JBoss-Rails).

It has been tested with Ruby on Rails 2.3.4 and TorqueBox 1.0.0.Beta15 which bundles JRuby 1.3.1 with JBoss AS 5.1.0.GA and JBossCache 'Malagueta' 3.2.0.GA.

JBoss Cache

JBoss Cache is usually shipped with every binary JBoss AS distribution and configured in the all-configuration.

The JBoss Cache library and dependant JAR files

The JBoss Cache library is party of JBoss AS and hence all required files should be installed and configured with that.

Installation

This package can be installed like any regular Rails plug-in:

script/plugin install git://github.com/GertThiel/activesupport-jbosscache.git

ActiveSupport::Cache::JbossCacheStore

Either add a line to your config/environment.rb file like

config.cache_store = :jboss_cache_store

or create a separate initializer (e.g. config/initializers/cache.rb) with

ActionController::Base.cache_store = :jboss_cache_store

ActiveSupport::Cache::CompressedJbossCacheStore

The CompressedJbossCacheStore uses ActiveSupport::Gzip to compress the cached data. Besides that it behaves exactly as the JbossCacheStore.

If you want to use this store either add a line to your config/environment.rb file like

config.cache_store = :compressed_jboss_cache_store

or create a separate initializer (e.g. config/initializers/cache.rb) with

ActionController::Base.cache_store = :compressed_jboss_cache_store

Test Suite

ActiveSupport::Cache::JbossCacheStore comes with a spec. You need RSpec to run the tests. On the other hand, you don't need the application server.

A binary JRuby distribution with the activesupport gem installed is enough.

jruby -S spec spec/jboss_cache_store_spec.rb
jruby -S spec spec/compressed_jboss_cache_store_spec.rb

The JBoss Cache library is included in this distribution.

License

ActiveSupport::Cache::JbossCacheStore is licensed under a MIT license.

activesupport-jbosscache's People

Contributors

gertthiel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.