Sha256: 054065009af39a5ebe7a7e651fe29cbd6c4c0da5f97a0179e3d29dd8827825e8

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

require 'twitter/cache/version'
require 'twitter/cache/helpers'
require 'twitter/cache/config'
require 'twitter/cache/redis'
require 'twitter/cache/wrapper'

module Twitter
  module Cache
    def self.configure
      yield(config)
      config.freeze
    end

    def self.config
      @config ||= Config.new
    end

    def self.new(twitter)
      Twitter::Cache::Wrapper.new(twitter)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twitter-cache-0.2.4 lib/twitter/cache.rb
twitter-cache-0.2.3 lib/twitter/cache.rb
twitter-cache-0.2.2 lib/twitter/cache.rb
twitter-cache-0.2.1 lib/twitter/cache.rb
twitter-cache-0.2.0 lib/twitter/cache.rb