mirror of
https://github.com/foomo/neosproxy.git
synced 2026-11-30 00:31:46 +00:00
28 lines
405 B
Go
28 lines
405 B
Go
package cache
|
|
|
|
import (
|
|
"sync"
|
|
"time"
|
|
|
|
"github.com/foomo/neosproxy/config"
|
|
)
|
|
|
|
// Cache workspace items
|
|
type Cache struct {
|
|
Workspace string
|
|
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(workspace string)
|
|
}
|