1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 12:50: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 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) { func NewCache(adapterName, config string) (Cache, error) {
adapter, ok := adapters[adapterName] adapter, ok := adapters[adapterName]
if !ok { if !ok {