Sha256: d1d311585410c1bf865815894c3137fc10d891ffb2d229c9f24025acb3704bea
Contents?: true
Size: 677 Bytes
Versions: 5
Compression:
Stored size: 677 Bytes
Contents
require "infopark_component_cache/abstract_cache_storage" module InfoparkComponentCache # @author Tomasz Przedmojski <tomasz.przedmojski@infopark.de> # # This class has the exact same interface as CacheStorage # but it does not offer any guarantees regarding persistence # of the cache. # It should be not regarded any more safe than a NullCache. # The primasy use case here is to provide caching where # it is "nice to have" but also has to be extremely quick. class VolatileCacheStorage < AbstractCacheStorage protected def backing_storage @@backing_storage ||= ActiveSupport::Cache::MemoryStore.new({ size: 10.megabytes }) end end end
Version data entries
5 entries across 5 versions & 1 rubygems