def []=(key, value)
      @lock.synchronize do
        if !@replace && @store.include?(key)
          # XXX don't expose the receiver as this class is an internal
          # implementation detail
          raise Wireless::KeyError.new(
            "#{@type} already exists: #{key}",
            key: key
          )
        end

        @store[key] = value
      end
    end
def []=(key, value)
      @lock.synchronize do
        if !@replace && @store.include?(key)
          # XXX don't expose the receiver as this class is an internal
          # implementation detail
          raise Wireless::KeyError.new(
            "#{@type} already exists: #{key}",
            key: key
          )
        end

        @store[key] = value
      end
    end
Add a key/value to the store

 A synchronized version of:

   store[key] = value