【发布时间】:2012-09-13 20:02:29
【问题描述】:
我正在 Windows Azure 网站 (IISNode) 上开发 node.js 应用程序,并为 node.js 安装了 Azure SDK 模块,我的问题是如何在表存储中使用 etag 或时间戳字段。
是“我”做某事的问题吗,例如:
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
或者我是否需要监听 tableService.updateEntity( ... 返回的错误或其他什么?
任何帮助或建议表示赞赏
【问题讨论】:
标签: windows node.js azure etag