Sha256: 0d8bb639b5cbde0b5c9b075bfe999e08c5766dd1d7f3cf46db5d9949076dec25

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

require 'singleton'
require 'forwardable'

module Grape
  module Util
    class Cache
      include Singleton

      attr_reader :cache

      class << self
        extend Forwardable
        def_delegators :cache, :[]
        def_delegators :instance, :cache
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grape-2.0.0 lib/grape/util/cache.rb
grape-1.8.0 lib/grape/util/cache.rb
grape-1.7.1 lib/grape/util/cache.rb