lib/dalli/protocol/meta.rb in dalli-3.2.2 vs lib/dalli/protocol/meta.rb in dalli-3.2.3
- old
+ new
@@ -42,9 +42,10 @@
write(req)
response_processor.meta_get_with_value(cache_nils: cache_nils?(options))
end
def touch(key, ttl)
+ ttl = TtlSanitizer.sanitize(ttl)
encoded_key, base64 = KeyRegularizer.encode(key)
req = RequestFormatter.meta_get(key: encoded_key, ttl: ttl, value: false, base64: base64)
write(req)
response_processor.meta_get_without_value
end