Sha256: 742322a86fb16b0c7f91f8155f36aa57ab09075a5fa6cb8449878f83e57819a9
Contents?: true
Size: 492 Bytes
Versions: 8
Compression:
Stored size: 492 Bytes
Contents
require 'legion/extensions/helpers/base' module Legion module Extensions module Helpers module Cache include Legion::Extensions::Helpers::Base def cache_namespace @cache_namespace ||= lex_name end def cache_set(key, value, ttl: 60, **) Legion::Cache.set(cache_namespace + key, value, ttl: ttl) end def cache_get(key) Legion::Cache.get(cache_namespace + key) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems