CacheFileStore back to the previous state

This commit is contained in:
erwanlr
2013-02-21 12:12:07 +01:00
parent 88e33c5b4e
commit 4f3225c56a
2 changed files with 20 additions and 23 deletions

View File

@@ -51,7 +51,7 @@ class CacheFileStore
end
end
def get(key)
def read_entry(key)
entry_file_path = get_entry_file_path(key)
if File.exists?(entry_file_path)
@@ -59,7 +59,7 @@ class CacheFileStore
end
end
def set(key, data_to_store, cache_timeout)
def write_entry(key, data_to_store, cache_timeout)
if cache_timeout > 0
File.open(get_entry_file_path(key), 'w') do |f|
f.write(@serializer.dump(data_to_store))