LUA
文章平均质量分 59
hanyingzhong
这个作者很懒,什么都没留下…
展开
-
CentOS利用Lua访问Redis
CentOS利用Lua访问Redis首先确保你编译的Lua是支持链接外部动态链接库的。因为在对Redis进行访问时是需要使用socket通信的,而这依赖于外部的C语言写的动态连接库。首先,这里先下载Redis的Lua客户端访问包redis-lua,下载地址:https://github.com/nrk/redis-lua下载之后,直接解压就行,下载的zip的话,可以使用unzip 压缩包 就可以了。因为对Redis进行访问需要使用socket进行通信,所以需要下载Socket动态连接库.原创 2021-11-13 20:53:57 · 232 阅读 · 0 评论 -
LUA 资源
http://luarocks.org/modules/moteushttps://github.com/Yonabahttp://luarocks.org/moduleshttp://underpop.free.fr/l/lua/lualogging/index.htmlhttp://luarocks.org/modules/moteus/lua-log/0.1.6-1htt...原创 2018-12-26 13:27:04 · 442 阅读 · 0 评论 -
LUA中anaconst:getCatagory和anaconst.getCatagory的区别
对于函数而言:必须有这样的定义:anaconst:getCatagory如果anaconst:getCatagory是这样定义的,如果用anaconst.getCatagory,则默认的第一个参数是anaconst本身。function const_db:getCatagory(idx) if (idx < #catagory) then return c...原创 2018-11-20 17:35:33 · 110 阅读 · 0 评论