cartodb-4.42/lib/cartodb/per_request_sequel_cache.rb

17 lines
250 B
Ruby
Raw Permalink Normal View History

2024-04-06 13:25:13 +08:00
module PerRequestSequelCache
def self.set(key, obj, ttl)
# Please note ttl is ignored
RequestStore.write(key, obj)
end
def self.get(key)
RequestStore.read(key)
end
def self.delete(key)
RequestStore.delete(key)
end
end