Sha256: d3b893aacf5f8b83c8acb8d33b6f5838d74c90a15776c20825b1ba9aee8d2237

Contents?: true

Size: 311 Bytes

Versions: 2

Compression:

Stored size: 311 Bytes

Contents

require 'redis'
require 'rediska/configuration'
require 'rediska/connection'

module Rediska
  extend self

  attr_accessor :configuration

  def configure
    Redis::Connection.drivers << Rediska::Connection

    self.configuration ||= Configuration.new
    yield configuration
  end
end

Rediska.configure {}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rediska-0.0.3 lib/rediska.rb
rediska-0.0.2 lib/rediska.rb