mirror of
https://github.com/foomo/neosproxy.git
synced 2026-12-03 18:21:47 +00:00
27 lines
361 B
Go
27 lines
361 B
Go
package cache
|
|
|
|
import (
|
|
"sync"
|
|
"time"
|
|
|
|
"github.com/foomo/neosproxy/config"
|
|
)
|
|
|
|
// Cache workspace items
|
|
type Cache struct {
|
|
invalidationChannel chan time.Time
|
|
|
|
file string
|
|
FileLock sync.RWMutex
|
|
|
|
config config.Cache
|
|
neos config.Neos
|
|
|
|
broker Broker
|
|
}
|
|
|
|
// Broker to handle content structure changes
|
|
type Broker interface {
|
|
NotifyOnSitemapChange()
|
|
}
|