Sha256: 360249822368b6e7fa997dc517fcb06e0d4e9d77ed17a46a32a3bd115b05e51f
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
module Isomorfeus module Professional class MemcachedComponentCache def initialize(*args) @dalli_client = Dalli::Client.new(*args) end def fetch(key) json = @dalli_client.get(key) Oj.load(json, mode: :strict) end def store(key, rendered_tree, response_status, styles) json = Oj.dump([rendered_tree, response_status, styles], mode: :strict) @dalli_client.set(key, json) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
isomorfeus-react-16.13.12 | lib/isomorfeus/react/memcached_component_cache.rb |