Skip to content
Snippets Groups Projects
Commit f4263db1 authored by Kasper Weibel's avatar Kasper Weibel
Browse files
parent 6f6c1607
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ class AutoexpireCacheDalli
if value.nil?
del(url)
else
key_cache_add(url) if @store.add(key, YAML::dump(value), @ttl)
key_cache_add(url) if @store.add(url, YAML::dump(value), @ttl)
end
value
end
......@@ -30,7 +30,7 @@ class AutoexpireCacheDalli
end
def del(url)
key_cache_delete(url) if @store.delete(key)
key_cache_delete(url) if @store.delete(url)
end
private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment