Add import statement to examples
This commit is contained in:
@@ -6,6 +6,8 @@ Installation:
|
|||||||
goinstall github.com/pmylund/go-cache
|
goinstall github.com/pmylund/go-cache
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
import "github.com/pmylund/go-cache"
|
||||||
|
|
||||||
// Create a cache with a default expiration time of 5 minutes, and which purges
|
// Create a cache with a default expiration time of 5 minutes, and which purges
|
||||||
// expired items every 30 seconds
|
// expired items every 30 seconds
|
||||||
c := cache.New(5*time.Minute, 30*time.Second)
|
c := cache.New(5*time.Minute, 30*time.Second)
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ import (
|
|||||||
// goinstall github.com/pmylund/go-cache
|
// goinstall github.com/pmylund/go-cache
|
||||||
//
|
//
|
||||||
// Usage:
|
// Usage:
|
||||||
|
// import "github.com/pmylund/go-cache"
|
||||||
|
//
|
||||||
// // Create a cache with a default expiration time of 5 minutes, and which purges
|
// // Create a cache with a default expiration time of 5 minutes, and which purges
|
||||||
// // expired items every 30 seconds
|
// // expired items every 30 seconds
|
||||||
// c := cache.New(5*time.Minute, 30*time.Second)
|
// c := cache.New(5*time.Minute, 30*time.Second)
|
||||||
|
|||||||
Reference in New Issue
Block a user