Sha256: 29f0c478cea056bac74f280f1b38053cdc037207d8258a97c4eb53cea63eddf9

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

require 'cache/object/version'
require 'cache/object/config'
require 'cache/object/active_record'
require 'cache/object/adapter'
require 'cache/object/key_generator'

module Cache
  module Object
    # Your code goes here...
    def self.configure
      yield configuration
    end

    def self.configuration
      @configuration ||= Cache::Object::Config.new
    end

    def self.adapter
      @adapter ||= configuration.adapter
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cache-object-0.0.3 lib/cache/object.rb
cache-object-0.0.2 lib/cache/object.rb
cache-object-0.0.1 lib/cache/object.rb