examples/autoexpire_cache_dalli.rb in geocoder-1.1.8 vs examples/autoexpire_cache_dalli.rb in geocoder-1.1.9

- old
+ new

@@ -18,20 +18,20 @@ def []=(url, value) 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 def keys key_cache end def del(url) - key_cache_delete(url) if @store.delete(key) + key_cache_delete(url) if @store.delete(url) end private def key_cache