Sha256: f2d7e88bc63443ef1c74443e8e2fbb95dd14b45b5f3e7433a83eaeb58df0ea0b

Contents?: true

Size: 347 Bytes

Versions: 5

Compression:

Stored size: 347 Bytes

Contents

require 'em-hiredis'

module Weeter
  module Plugins
    module Net
      module Redis
        def create_redis_client
          @redis ||= begin
            redis = EM::Hiredis.connect(@config.redis_uri)
            redis.callback { Weeter.logger.info "Connected to Redis" }
            redis
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
weeter-0.11.0 lib/weeter/plugins/lib/redis.rb
weeter-0.10.0 lib/weeter/plugins/lib/redis.rb
weeter-0.9.2 lib/weeter/plugins/lib/redis.rb
weeter-0.9.1 lib/weeter/plugins/lib/redis.rb
weeter-0.9.0 lib/weeter/plugins/lib/redis.rb