Documentation
¶
Overview ¶
Package postgres provides a durable multi-process task-result cache.
Index ¶
- type Options
- type Store
- func (s *Store) Clear(ctx context.Context, namespaces []string) error
- func (s *Store) Close() error
- func (s *Store) Get(ctx context.Context, keys []cache.Key) (map[cache.Key][]byte, error)
- func (s *Store) Set(ctx context.Context, items map[cache.Key]cache.Item) error
- func (s *Store) Setup(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Clock defaults to UTC time.Now and is injectable for deterministic TTL tests.
Clock func() time.Time
}
Options controls PostgreSQL cache behavior.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a concurrency-safe PostgreSQL task cache.
Click to show internal directories.
Click to hide internal directories.