使用allocateIds()时,未使用的ID会保留多长时间? [英] When using allocateIds(), how long do unused IDs remain allocated?

查看:60
本文介绍了使用allocateIds()时,未使用的ID会保留多长时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假定通过调用实体的put()尚未使用ID.分配的ID会保留多长时间?它们是否曾经被数据存储重新使用?还是永远分配?

Assuming the IDs have not been used by calling put() for an Entity. How long would the allocated IDs stick around for? Are they ever put back into use by datastore? Or are they allocated forever?

推荐答案

文档说,

保证这些键以前不会被返回 数据存储的内部ID生成器,也不会由它们返回 将来会调用内部ID生成器.

These keys are guaranteed not to have been returned previously by the data store's internal ID generator, nor will they be returned by future calls to the internal ID generator.

我会弯腰说,在上面使用保证"和未来"意味着永远.

I'll go out on a limb and say that the use of 'guarantee' and 'future' above means forever.

这篇关于使用allocateIds()时,未使用的ID会保留多长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆