// ErrInvalidCacheType indicates provided cache type is not supported
ErrInvalidCacheType=errors.New("invalid cache type provided")
)
// Cacher provides access to underlying cache, make sure all caches implement these methods.
//
// The return types of data can be different. Ex. In case of redis cache it is `string`. The caller needs to handle this with the help of Type() method.
...
...
@@ -42,26 +36,3 @@ type Cacher interface {
Type()int
}
// GetCacheInstance returns a cache instance, panics if invalid cache type is provided