Hello!
2014-09-01 0:25 GMT-07:00 老王:
> 我打算使用shcache,尽管它不属于openresty,但我想春哥应该很熟悉,所以再这里问一下:
>
> 我看源代码里引用了一些库:
>
> local resty_lock = require("resty.lock")
> local conf = require("conf")
> local debug = require("debug")
>
> 但我实际用的时候,conf报错,请问如何得到这个库?
>
这个东西当初开源出来是一个失误。它并不适合开源。conf 这个模块是我们内部的一个 Lua 配置模块。
shcache 其实是我的前同事 Matthieu Tourne 设计和实现的。我自己并不太喜欢它目前的 API,一直想把它给替换掉 :)
不过 shcache 本身基于 lua-resty-lock 的实现还是值得参考的,呵呵。
Regards,
-agentzh