cartodb/app/helpers/cache_helper.rb

6 lines
130 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
module CacheHelper
def get_surrogate_key(namespace, key)
"#{namespace}:#{Digest::SHA256.base64digest(key)[0..5]}"
end
end