是否可以使用 phone 作为缓存的键?
$key = 'verificationCode_'.str_random(15);
请问,是否可以使用phone作为缓存的键,比如 register:185xxx , 教程使用随机值作为键的考虑是什么? 因为使用phone作为键,调用接口就不用传递随机的那个键了。
推荐文章: