Add implements assertion for cache

pull/6/head
Paul Morie 2015-11-11 16:20:56 -05:00
parent 0ee52eb0c8
commit 2377bada68
1 changed files with 2 additions and 0 deletions

View File

@ -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)