Sha256: a84e8c543fcdcf8e3e78bfdfe12bab7570bca067682a62b01e631a4f2ace2fa2

Contents?: true

Size: 275 Bytes

Versions: 1

Compression:

Stored size: 275 Bytes

Contents

module RestrictCache
  class CacheCollection
    class CustomCache < InnerCache
      def add(content)
        @caches[content.class.cache_key] = content
      end

      def contents(cache_key = nil)
        cache_key ? @caches[cache_key] : nil
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
restrict_cache-0.1.2 lib/restrict_cache/cache_collection/custom_cache.rb