Versions in this module Expand all Collapse all v0 v0.0.0 Oct 11, 2024 Changes in this version + var ErrKeyExpired = errors.New("key expired") + var ErrKeyNotFound = errors.New("key not found") + func WithExpiry(expiresIn time.Duration) func(*setOpts) + type KVStore struct + func New(db *sql.DB, purgeFreq time.Duration) (*KVStore, error) + func (kv *KVStore) Close() error + func (kv *KVStore) Delete(key string) error + func (kv *KVStore) Get(key string) (string, error) + func (kv *KVStore) Set(key string, value string, optFuncs ...func(*setOpts)) error