Documentation
¶
Overview ¶
Package memory provides an in-process ScanStore backed by patrickmn/go-cache. This is the MVP default backend (single instance, TTL-based eviction).
Index ¶
- type Store
- func (s *Store) Delete(_ context.Context, id string) error
- func (s *Store) Get(_ context.Context, id string) (*storage.Scan, error)
- func (s *Store) Put(_ context.Context, scan *storage.Scan, ttl time.Duration) error
- func (s *Store) UpdateStatus(_ context.Context, id string, fn func(*storage.Scan) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a memory-backed ScanStore.
func New ¶
New returns a memory ScanStore with the given default TTL. Pass storage.TTL from config; callers may still override per-Put via the ttl argument to Put.
Click to show internal directories.
Click to hide internal directories.