Sha256: 871e0a5c8144e02e2db52f72c1a1666921b27267fcaefa04008fc4c671b40725
Contents?: true
Size: 336 Bytes
Versions: 9
Compression:
Stored size: 336 Bytes
Contents
require 'lru_redux' module Semlogr module Templates class TemplateCache def initialize(max_size) @template_cache = LruRedux::ThreadSafeCache.new(max_size) end def [](key) @template_cache[key] end def []=(key, value) @template_cache[key] = value end end end end
Version data entries
9 entries across 9 versions & 1 rubygems