cartodb-4.42/lib/cartodb/per_request_sequel_cache.rb
2024-04-06 05:25:13 +00:00

17 lines
250 B
Ruby

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