Ref #53 Typhoeus > 0.4.2 support

This commit is contained in:
erwanlr
2013-02-21 18:48:48 +01:00
parent 5e971ba3fe
commit 79cad5cf55
15 changed files with 118 additions and 103 deletions

View File

@@ -59,8 +59,8 @@ class CacheFileStore
end
end
def write_entry(key, data_to_store, cache_timeout)
if cache_timeout > 0
def write_entry(key, data_to_store, cache_ttl)
if cache_ttl > 0
File.open(get_entry_file_path(key), 'w') do |f|
f.write(@serializer.dump(data_to_store))
end