Redis Lua脚本使用(资料备份)不是博客

./redis-cli EVAL "$(cat /root/redis-2.8.7/lua/count.lua)" 1 links:counter

[root@iZ28a2ewhtoZ bin]# ./redis-cli SCRIPT LOAD "$(cat /root/redis-2.8.7/lua/count.lua)"

"693491b86cd84a1400c780806c3dd87715a13da8"

./redis-cli EVALSHA 693491b86cd84a1400c780806c3dd87715a13da8 1 links:counter

相关推荐