我有一个crontab,定时 hmset(today_key,mapping)mapping是这种形式的
{1:"string1",2:"string2"}
然后web里面 hget(today_key,1) 偶尔会get到None的情况,而且时间都在 crontab执行的时间附近这种问题是如何产生的?
如果要解决的话,是不是在在crontab,和hget外面加同一个键的锁就好了
认证高级PHP讲师
Yes. The question is how do you lock it?
Can you guarantee that the data must be set before reading?
To lock, you can use https://pypi.python.org/pypi/...
Yes. The question is how do you lock it?
Can you guarantee that the data must be set before reading?
To lock, you can use https://pypi.python.org/pypi/...