b886ed59 by Dobrosław Żybort

Update cache docs

1 parent 34756852
...@@ -28,7 +28,7 @@ func Register(name string, adapter Cache) { ...@@ -28,7 +28,7 @@ func Register(name string, adapter Cache) {
28 adapters[name] = adapter 28 adapters[name] = adapter
29 } 29 }
30 30
31 //config is json {"interval":360} 31 // config need to be correct JSON as string: {"interval":360}
32 func NewCache(adapterName, config string) (Cache, error) { 32 func NewCache(adapterName, config string) (Cache, error) {
33 adapter, ok := adapters[adapterName] 33 adapter, ok := adapters[adapterName]
34 if !ok { 34 if !ok {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!