|
|
@ -8,9 +8,11 @@ be saved to and loaded from a file (or any io.Reader/Writer) to recover from
|
|
|
|
downtime quickly.
|
|
|
|
downtime quickly.
|
|
|
|
|
|
|
|
|
|
|
|
== Installation
|
|
|
|
== Installation
|
|
|
|
|
|
|
|
|
|
|
|
goinstall github.com/pmylund/go-cache
|
|
|
|
goinstall github.com/pmylund/go-cache
|
|
|
|
|
|
|
|
|
|
|
|
== Usage
|
|
|
|
== Usage
|
|
|
|
|
|
|
|
|
|
|
|
import "github.com/pmylund/go-cache"
|
|
|
|
import "github.com/pmylund/go-cache"
|
|
|
|
|
|
|
|
|
|
|
|
// Create a cache with a default expiration time of 5 minutes, and which
|
|
|
|
// Create a cache with a default expiration time of 5 minutes, and which
|
|
|
|