Sha256: e14ce369959effc2a60ad0076c71940bce9d36d1f5cb1f1be2f0abad136eb787

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

module Zetto::Storage::Connect

  require "redis"

  module RedisSingelton

    @redis = Redis.new (Zetto::Config::Params.redis_connect || {}).merge({:driver => :hiredis})
    class << self
      def get
        @redis
      end
    end
  end

end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zetto-2.2.0 lib/zetto/storage/connect/redis_singelton.rb