mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-18 14:36:30 +00:00
14 lines
215 B
Go
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()
|
|
}
|
|
}
|