Sha256: 7bb8507a509156857a04ae2727163e88d741faa5b9805903e6f54deb93fcc988

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

= ruote-redis

Redis persistence for ruote 2.1 (a ruby workflow engine)


== usage

The storage is instantiate by passing a redis-rb instance to the storage.

  require 'redis' # gem install redis
  require 'ruote' # gem install ruote
  require 'ruote-redis' # gem install ruote-redis

  engine = Ruote::Engine.new(
    Ruote::Worker.new(
      Ruote::Redis::RedisStorage.new(
        ::Redis.new(:db => 14, :thread_safe => true), {})))

  # ...

Passing an em-redis instance might work, but I haven't tried.

Tested with Redis 1.3.8 (redis-rb 2.0.1).


== running tests

assuming you have

  ruote/
  ruote-redis/

start a redis server instance (port 6379) and then 


* unit tests :

get into ruote/ and do

  ruby test/unit/storage.rb -- --redis

* functional tests :

get into ruote/ and do

  ruby test/functional/test.rb -- --redis


== license

MIT


== links

* http://code.google.com/p/redis/
* http://github.com/ezmobius/redis-rb

* http://ruote.rubyforge.org/
* http://github.com/jmettraux/ruote-redis


== feedback

mailing list : http://groups.google.com/group/openwferu-users
irc : irc.freenode.net #ruote


== many thanks to

- the Redis authors and the redis-rb authors

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-redis-2.1.11 README.rdoc