Sha256: 47631706c5cdc5f143a69d114a9bde71991a582776d47a3bb0d154b550a506c7

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

module RestrictCache
  class Cacheable
    class CustomCache < Base
      def add(cache_key, content)
        @caches[cache_key.to_sym] = content
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restrict_cache-0.1.1 lib/restrict_cache/cacheable/custom_cache.rb
restrict_cache-0.1.0 lib/restrict_cache/cacheable/custom_cache.rb