lib/adapter/riak.rb
# Optimize key? to do head request in riak instead of full key read and nil check
Optimize key. to do head request in riak instead of full key read and nil check
Optimize key . to do head request in riak instead of full key read and nil check
def read(key)
      robject = client.get(key_for(key))
      raise Conflict.new(robject) if robject.conflict?
      robject.data
    rescue ::Riak::FailedRequest => e
      e.code.to_i == 404 ? nil : raise(e)
    end
def read ( key ) robject = client . get ( key_for ( key ) ) raise Conflict . new ( robject ) if robject . conflict? robject . data rescue :: Riak :: FailedRequest => e e . code . to_i == 404 ? nil : raise ( e ) end
Optimize key?
Optimize key?
key