Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JITCache ¶
type JITCache struct {
// contains filtered or unexported fields
}
JITCache provides LRU + TTL caching for JIT-rendered pages. Not safe for concurrent use — callers must hold the lock.
func NewJITCache ¶
NewJITCache creates a JITCache with the given max entry count and default TTL.
type JITEntry ¶
type JITEntry struct {
Path string
HTML []byte
Size int64
ContentType string
RenderedAt time.Time
TTL time.Duration
}
JITEntry holds a single JIT-rendered page.
type RenderCache ¶
RenderCache provides the interface for the full-cache operations. Phase 1: pass-through to JITCache. Phase 2: add full cache + incr cache.
func NewRenderCache ¶
func NewRenderCache(root string, jitMaxSize int, jitTTL time.Duration) *RenderCache
NewRenderCache creates a RenderCache.
Click to show internal directories.
Click to hide internal directories.