Sha256: dc2207efa7aed58fdf43207f5fc3c7b250f58b6fe793661097103879d1d2e740

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

require "redis"

module MarkdownCache
  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield(configuration) if block_given?
  end

  class Configuration
    def redis=(options)
      @redis = Redis.new(options)
    end

    def redis
      @redis ||= Redis.new
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
markdown_cache-0.1.0 lib/markdown_cache/configuration.rb