# File lib/storage/cache.rb, line 254 def delete(oid) return nil if oid.nil? @st.inc(:deletes) hv = hash(oid) # mark dead in cache @cache[hv].each do |ce| next if ce.oid != oid ce.mark_dead break end # delete it from the database @db.delete(oid.to_s) end