go-cache icon indicating copy to clipboard operation
go-cache copied to clipboard

Request: Add formal interface for go-cache

Open augbog opened this issue 5 years ago • 1 comments

Pardon me if there is a way to do this but I was wondering if it would be possible to support a formal interface for go-cache? For things like counterfeiter, it would be useful to have it so that it can crawl through and mock/stub all the methods in go-cache to create test doubles.

Right now this isn't possible though because no interface is available.

augbog avatar Jan 28 '20 00:01 augbog

See https://github.com/patrickmn/go-cache/pull/92

FYI I merged it into github.com/sylr/go-cache/v2

sylr avatar Jul 13 '20 19:07 sylr