Foreword The first two articles introduce the core concepts and advantages and architecture of OpenResty respectively. It is recommended to watch it at least once before proceeding with this artic
Tag: OpenResty
OpenResty Lua-Resty-Redis Package
I searched for other people’s package code, and it feels not elegant enough, mainly because the timing of calling set_keepalive is not good.
The code below myself uses coroutine, and set_keepalive