Documentation
¶
Overview ¶
Package sqlite provides a SQLite key-value storage backend.
This is the recommended storage backend for persistent storage. Data is persisted to a local SQLite database file.
Index ¶
- type Config
- type Store
- func (s *Store) Close() error
- func (s *Store) Delete(ctx context.Context, key string) error
- func (s *Store) Get(ctx context.Context, key string) ([]byte, error)
- func (s *Store) List(ctx context.Context, prefix string) ([]string, error)
- func (s *Store) Path() string
- func (s *Store) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Path is the database file path.
Path string
}
Config configures the SQLite storage.
Click to show internal directories.
Click to hide internal directories.