Jak używać znacznika czasu lub pola Etag magazynu pamięci Azure systemu Windows

Opracowuję aplikację node.js na witrynach Windows Azure (IISNode) i zainstalowałem moduł Azure SDK dla node.js. Moje pytanie brzmi: jak użyć pola etag lub timestamp w pamięci tabeli.

Czy to kwestia „ja” robienia czegoś, np .:

if (entities[0].Timestamp == newEntity.Timestamp)
    // commit this update because we are dealing with the latest copy of this entity
else
    // oops! one of the entities is newer than the other, better not save it

Lub czy muszę nasłuchiwać błędu zwróconego przez tableService.updateEntity (... jeśli wystąpił błąd lub coś takiego?

Każda pomoc lub rada doceniana

questionAnswers(2)

yourAnswerToTheQuestion