mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Add implements assertion for cache
This commit is contained in:
parent
0ee52eb0c8
commit
2377bada68
2
pkg/client/cache/store.go
vendored
2
pkg/client/cache/store.go
vendored
@ -116,6 +116,8 @@ type cache struct {
|
|||||||
keyFunc KeyFunc
|
keyFunc KeyFunc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _ Store = &cache{}
|
||||||
|
|
||||||
// Add inserts an item into the cache.
|
// Add inserts an item into the cache.
|
||||||
func (c *cache) Add(obj interface{}) error {
|
func (c *cache) Add(obj interface{}) error {
|
||||||
key, err := c.keyFunc(obj)
|
key, err := c.keyFunc(obj)
|
||||||
|
Loading…
Reference in New Issue
Block a user