You pass the new values of name, date, and the deleted flag to the update service for updating the record in the database.
您将名称、日期和删除标记的新值传递到更新服务以更新数据库中的记录。
Instead, you could set the expiration date to 10 minutes in the future, and you'll be assured that the policy can't be used by deleted users more than 10 minutes after their last legitimate access.
相反,您在以后可以将过期日期设置为10分钟,这样可以确保已删除的用户在超过最近一次合法访问的10分钟之后就不能再使用策略。
This loop also keeps an $invalidateCache flag up to date, so that if a Butterfly's cache is deleted, it deletes the caches of the rest of the Butterfly objects above it in the chain.
该循环也使 $invalidateCache 标志保持最新状态,因此,如果删除了 Butterfly 的缓存,它便删除链中在它之上的其他 Butterfly 对象的缓存。
应用推荐