简体   繁体   中英

Azure Table Storage expiration

Is there any way to delete items from Azure Table storage without creating a worker to delete based on timestamp ? I want some solution like in Azure cache service where we can specify time span for the message.

Table Storage is a durable store, and row entities don't have an expiration date. A committed write stays in storage until you delete it. You'd need some type of scheduled task to periodically clean out data based on timestamp or other metadata.

You can create a new table every week for example and delete n-2 old tables. And always write to the nth table

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM