cache: fix comments the return err
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -17,7 +17,7 @@ import ( | ... | @@ -17,7 +17,7 @@ import ( |
| 17 | // Cache interface contains all behaviors for cache adapter. | 17 | // Cache interface contains all behaviors for cache adapter. |
| 18 | // usage: | 18 | // usage: |
| 19 | // cache.Register("file",cache.NewFileCache()) // this operation is run in init method of file.go. | 19 | // cache.Register("file",cache.NewFileCache()) // this operation is run in init method of file.go. |
| 20 | // c := cache.NewCache("file","{....}") | 20 | // c,err := cache.NewCache("file","{....}") |
| 21 | // c.Put("key",value,3600) | 21 | // c.Put("key",value,3600) |
| 22 | // v := c.Get("key") | 22 | // v := c.Get("key") |
| 23 | // | 23 | // | ... | ... |
-
Please register or sign in to post a comment