1
0
mirror of https://github.com/astaxie/beego.git synced 2024-10-31 23:00:55 +00:00

Update cache docs

This commit is contained in:
Dobrosław Żybort 2013-06-20 14:37:26 +03:00
parent 3475685233
commit b886ed59a5

2
cache/cache.go vendored
View File

@ -28,7 +28,7 @@ func Register(name string, adapter Cache) {
adapters[name] = adapter
}
//config is json {"interval":360}
// config need to be correct JSON as string: {"interval":360}
func NewCache(adapterName, config string) (Cache, error) {
adapter, ok := adapters[adapterName]
if !ok {