Skip to content

Instantly share code, notes, and snippets.

@karminski
karminski / redis_factory.lua
Last active January 20, 2021 19:19
lua redis factory for lua-resty-redis, can work with nginx + nginx-lua-module or openresty.
--[[
redis_factory.lua
Redis factory method.
You can also find it at https://gist.github.com/karminski/33fa9149d2f95ff5d802
@version 151019:5
@author karminski <[email protected]>
@license MIT