This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package cache | |
| import ( | |
| "bytes" | |
| "encoding/gob" | |
| "time" | |
| "github.com/bradfitz/gomemcache/memcache" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package bench_test | |
| import "testing" | |
| func BenchmarkByteArray(b *testing.B) { | |
| for n := 0; n < b.N; n++ { | |
| GetBytes() | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ( | |
| "bytes" | |
| "encoding/gob" | |
| "time" | |
| "github.com/bradfitz/gomemcache/memcache" | |
| "golang.org/x/net/context" | |
| ) | |