Sha256: 055b899452f91c9b635e4b920b2ca5baa64862ce298d78941983625aee040518
Contents?: true
Size: 1.18 KB
Versions: 28
Compression:
Stored size: 1.18 KB
Contents
# frozen_string_literal: true module Sprockets class Cache # Public: A compatible cache store that doesn't store anything. Used by # default when no Environment#cache is configured. # # Assign the instance to the Environment#cache. # # environment.cache = Sprockets::Cache::NullStore.new # # See Also # # ActiveSupport::Cache::NullStore # class NullStore # Public: Simulate a cache miss. # # This API should not be used directly, but via the Cache wrapper API. # # key - String cache key. # # Returns nil. def get(key) nil end # Public: Simulate setting a value in the cache. # # This API should not be used directly, but via the Cache wrapper API. # # key - String cache key. # value - Object value. # # Returns Object value. def set(key, value) value end # Public: Pretty inspect # # Returns String. def inspect "#<#{self.class}>" end # Public: Simulate clearing the cache # # Returns true def clear(options=nil) true end end end end
Version data entries
28 entries across 27 versions & 10 rubygems