(key string)
| 345 | } |
| 346 | |
| 347 | func (c *BenchFreeCache) Get(key string) (interface{}, bool) { |
| 348 | value, err := c.cache.Get([]byte(key)) |
| 349 | if err != nil { |
| 350 | return value, false |
| 351 | } |
| 352 | return value, true |
| 353 | } |
| 354 | |
| 355 | func (c *BenchFreeCache) Set(key string, value interface{}) { |
| 356 | longKey := []byte(padString(key, 64)) |