thread_cache

package
v1.26.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2026 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(
	ctx context.Context,
	lc fx.Lifecycle,

	db *ent.Client,
	store cache.Store,
	bus *pubsub.Bus,
) *Cache

func (*Cache) Check

func (c *Cache) Check(ctx context.Context, cq cachecontrol.Query, id xid.ID) (*cachecontrol.ETag, bool)

func (*Cache) Invalidate

func (c *Cache) Invalidate(ctx context.Context, id xid.ID) error

func (*Cache) LastModified

func (c *Cache) LastModified(ctx context.Context, id xid.ID) *time.Time

func (*Cache) Store

func (c *Cache) Store(ctx context.Context, id xid.ID, ts time.Time) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL