mirror of https://github.com/k3s-io/k3s
Add implements assertion for cache
parent
0ee52eb0c8
commit
2377bada68
|
@ -116,6 +116,8 @@ type cache struct {
|
|||
keyFunc KeyFunc
|
||||
}
|
||||
|
||||
var _ Store = &cache{}
|
||||
|
||||
// Add inserts an item into the cache.
|
||||
func (c *cache) Add(obj interface{}) error {
|
||||
key, err := c.keyFunc(obj)
|
||||
|
|
Loading…
Reference in New Issue