Sha256: e1f6a0a806fb5caac68ba1b06eb23d9d5985f8922cdcdb90772292c8162759f9

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

#
# testing ruote-redis
#
# Thu Apr  1 21:35:07 JST 2010
#

require 'yajl' rescue require 'json'
require 'rufus-json'
Rufus::Json.detect_backend

require 'redis'
require 'ruote-redis'


class RrLogger
  def method_missing (m, *args)
    super if args.length != 1
    puts ". #{Time.now.to_f} #{Thread.current.object_id} #{args.first}"
  end
end


def new_storage (opts)

  Ruote::Redis::RedisStorage.new(
    ::Redis.new(:db => 14, :thread_safe => true),
    #::Redis.new(:db => 14, :thread_safe => true, :logger => RrLogger.new),
    opts)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruote-redis-2.1.11 test/functional_connection.rb
ruote-redis-2.1.10 test/functional_connection.rb