Sha256: efacf96274ece6293745fdfab28e523e36a1615fd3829b09a64954484a53ef53

Contents?: true

Size: 407 Bytes

Versions: 5

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true

require 'redis'

module Cache
  class Redis
    class << self
      def set(key, value, expiry = 3600)
        raise "Test"
        redis.set(key, value, ex: expiry)
      end

      def get(key)
        raise redis.get(key).inspect
        redis.get(key)
      end

    private

      def redis
        @redis ||= Redis.new(url: ENV['REDIS_URL'])
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sensei_eod_utils-0.0.38 lib/cache/redis.rb
sensei_eod_utils-0.0.37 lib/cache/redis.rb
sensei_eod_utils-0.0.36 lib/cache/redis.rb
sensei_eod_utils-0.0.35 lib/cache/redis.rb
sensei_eod_utils-0.0.34 lib/cache/redis.rb