Sha256: dba558c52961f8bec429e30ee317eafa1dde62af5ea6dfe95547584557a39875

Contents?: true

Size: 372 Bytes

Versions: 6

Compression:

Stored size: 372 Bytes

Contents

module RedisSnippets
  class Redis
    class << self
      def get(key)
        connection.get(key)
      end

      def set(key, value)
        connection.set(key, value)
      end

      def del(key)
        connection.del(key)
      end

      protected

      def connection
        RedisSnippets::Engine.config.redis_snippets[:connection]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
redis_snippets-1.0.5 lib/redis_snippets/redis.rb
redis_snippets-1.0.4 lib/redis_snippets/redis.rb
redis_snippets-1.0.3 lib/redis_snippets/redis.rb
redis_snippets-1.0.2 lib/redis_snippets/redis.rb
redis_snippets-1.0.1 lib/redis_snippets/redis.rb
redis_snippets-1.0.0 lib/redis_snippets/redis.rb