Pin a value in the cache if it exists
(key string)
| 116 | |
| 117 | // Pin a value in the cache if it exists |
| 118 | func (c *Cache) Pin(key string) { |
| 119 | c.addPin(key, 1) |
| 120 | } |
| 121 | |
| 122 | // Unpin a value in the cache if it exists |
| 123 | func (c *Cache) Unpin(key string) { |