mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 07:30:55 +00:00
Update cache docs
This commit is contained in:
parent
3475685233
commit
b886ed59a5
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user