lib/riak/cache_store.rb in riak-client-0.9.0.beta vs lib/riak/cache_store.rb in riak-client-0.9.0.beta2
- old
+ new
@@ -75,10 +75,10 @@
def read_entry(key, options={})
begin
bucket.get(key).data
rescue Riak::FailedRequest => fr
- raise fr unless fr.code.to_i == 404
+ raise fr unless fr.not_found?
nil
end
end
def delete_entry(key, options={})