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 {
24
24
LoadMany (context.Context , []interface {}) ThunkMany
25
25
Clear (context.Context , string ) Interface
26
26
ClearAll () Interface
27
- Prime (ctx context.Context , key string , value interface {}) Interface
27
+ Prime (ctx context.Context , key interface {} , value interface {}) Interface
28
28
}
29
29
30
30
// 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 {
351
351
352
352
// Prime adds the provided key and value to the cache. If the key already exists, no change is made.
353
353
// 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 {
355
355
if _ , ok := l .cache .Get (ctx , key ); ! ok {
356
356
thunk := func () (interface {}, error ) {
357
357
return value , nil
You can’t perform that action at this time.
0 commit comments