From cff623998299fdcfb7d8ea138990188df1bcec3d Mon Sep 17 00:00:00 2001 From: PanfilovDenis Date: Tue, 15 Apr 2014 18:12:14 +0400 Subject: [PATCH] Update keyset.rb fix issue https://github.com/defconomicron/dalli-store-extensions/issues/1 --- lib/keyset.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/keyset.rb b/lib/keyset.rb index 73ff77a..065183e 100644 --- a/lib/keyset.rb +++ b/lib/keyset.rb @@ -7,7 +7,7 @@ def initialize(store, store_key) if existing=@store.send(:read_entry, @store_key, {}) - super(YAML.load(existing.value)) + super(YAML.load(existing.to_s)) else super([]) end @@ -31,7 +31,7 @@ def delete_with_cache(value) alias_method_chain :delete, :cache def clear_with_cache - clear_without_cache(value) + clear_without_cache ensure store end