harness-drone/router/middleware/cache/cache.go
2015-10-20 16:45:24 -07:00

14 lines
215 B
Go

package cache
import (
"github.com/drone/drone/cache"
"github.com/gin-gonic/gin"
)
func Default() gin.HandlerFunc {
cc := cache.Default()
return func(c *gin.Context) {
cache.ToContext(c, cc)
c.Next()
}
}