Skip to content

Commit

Permalink
fixed import and removed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
trapajim committed May 16, 2019
1 parent 96a1e3e commit 32afdb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/callbacks/callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/trapajim/cache2go"
"github.com/muesli/cache2go"
)

func main() {
Expand Down Expand Up @@ -38,7 +38,6 @@ func main() {
// Deleting the item will execute the AboutToDeleteItem callback.
cache.Delete("someKey")

//remove AddedItemCallbacks
cache.RemoveAddedItemCallbacks()
// Caching a new item that expires in 3 seconds
res = cache.Add("anotherKey", 3*time.Second, "This is another test")
Expand Down

0 comments on commit 32afdb1

Please sign in to comment.