File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ type Interface interface {
2424 LoadMany (context.Context , []interface {}) ThunkMany
2525 Clear (context.Context , string ) Interface
2626 ClearAll () Interface
27- Prime (ctx context.Context , key string , value interface {}) Interface
27+ Prime (ctx context.Context , key interface {} , value interface {}) Interface
2828}
2929
3030// BatchFunc is a function, which when given a slice of keys (string), returns an slice of `results`.
@@ -351,7 +351,7 @@ func (l *Loader) ClearAll() Interface {
351351
352352// Prime adds the provided key and value to the cache. If the key already exists, no change is made.
353353// Returns self for method chaining
354- func (l * Loader ) Prime (ctx context.Context , key string , value interface {}) Interface {
354+ func (l * Loader ) Prime (ctx context.Context , key interface {} , value interface {}) Interface {
355355 if _ , ok := l .cache .Get (ctx , key ); ! ok {
356356 thunk := func () (interface {}, error ) {
357357 return value , nil
You can’t perform that action at this time.
0 commit comments