You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding an object with a TTL then updating the object causes the TTL to disappear. I think we should change this behaviors so the object TTL is maintained during the update.
var james = new Customer
{
Id = 1,
FirstName = "James",
LastName = "Bond",
Email = "[email protected]",
Age = 68
};
// Insert Object
customers.Insert(james, TimeSpan.FromMinutes(1));
james.FirstName = "James1";
customers.Update(james);
Update (T item) - update and maintain the current TTL
Update (T item, Timespan ttl) - update and when timespan is 0 then remove any TTL otherwise update to new TTL
looking at the code, its already implemented, we just implement it in the update portion !
When adding an object with a TTL then updating the object causes the TTL to disappear. I think we should change this behaviors so the object TTL is maintained during the update.
This results in:
The text was updated successfully, but these errors were encountered: