我有一个小的Lua脚本要在Redis中运行,我对获取执行时间很感兴趣。由于Redis及其Lua实现的性质,我不能在脚本的开始/返回点使用时间函数,也不能将此信息包含在用于处理的返回中(请参阅作为纯函数的脚本)。f_a49ed2fea72f1f529843d6024d1515e76e69bcbd): Write commands not allowed after non deterministic commands
我到处寻找一个函数/调用,它将返回
最近,我向Django应用程序添加了一些Lua脚本(用于与Redis后端进行接口)。Please check Redis logs for details about the error.我的问题是,当内存不能分配给后台保存时,如何才能保持功能,但是lua脚本崩溃了吗?有没有办法避免这种情况?下面是我的lua_scripts.py模块的布局方式:from location import REDLOC2 #location o