go-redis/cache

feature request: extend stat support CacheHit CacheMiss

dangerous1990 opened this issue · 1 comments

type MetricFunc func(key string)
type Options struct {
	Redis        rediser
	LocalCache   LocalCache
	StatsEnabled bool
	Marshal      MarshalFunc
	Unmarshal    UnmarshalFunc
        CacheHit MetricFunc
        CacheMiss MetricFunc
}

This is PR