(key string)
| 298 | } |
| 299 | |
| 300 | func (c *BenchFastCache) Get(key string) (interface{}, bool) { |
| 301 | value := c.cache.Get(nil, []byte(key)) |
| 302 | if len(value) > 0 { |
| 303 | return value, true |
| 304 | } |
| 305 | return value, false |
| 306 | } |
| 307 | |
| 308 | func (c *BenchFastCache) Set(key string, value interface{}) { |
| 309 | longKey := []byte(padString(key, 64)) |