# File lib/ruote/storage/hash_storage.rb, line 119
    def get_many (type, key=nil, opts={})

      # NOTE : no dup here for now

      synchronize do

        docs = key ?
          @h[type].values.select { |doc| doc['_id'].match(key) } :
          @h[type].values

        if l = opts[:limit]
          docs[0, l]
        else
          docs
        end
      end
    end