func NewHandler(bodyHandler http.Handler,
	expireDuration time.Duration) *Handler {

	e := entry.NewEntry(expireDuration)

	return &Handler{
		bodyHandler: bodyHandler,
		rule:        DefaultRuleSet,
		entry:       e,
	}
}
func NewHandler(bodyHandler http.Handler,
	expireDuration time.Duration) *Handler {

	e := entry.NewEntry(expireDuration)

	return &Handler{
		bodyHandler: bodyHandler,
		rule:        DefaultRuleSet,
		entry:       e,
	}
}
func NewHandler ( bodyHandler http . Handler , expireDuration time . Duration ) * Handler { e := entry . NewEntry ( expireDuration ) return & Handler { bodyHandler : bodyHandler , rule : DefaultRuleSet , entry : e , } }
// NewHandler returns a new cached handler
NewHandler returns a new cached handler