mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-05-12 16:17:12 +02:00
move upstream into own package
This commit is contained in:
parent
f35c4d0f66
commit
38426c26db
7 changed files with 321 additions and 288 deletions
10
server/upstream/2rm.go
Normal file
10
server/upstream/2rm.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package upstream
|
||||
|
||||
import "github.com/OrlovEvgeny/go-mcache"
|
||||
|
||||
// branchTimestampCache stores branch timestamps for faster cache checking
|
||||
var branchTimestampCache = mcache.New()
|
||||
|
||||
// fileResponseCache stores responses from the Gitea server
|
||||
// TODO: make this an MRU cache with a size limit
|
||||
var fileResponseCache = mcache.New()
|
Loading…
Add table
Add a link
Reference in a new issue