file controller
This commit is contained in:
parent
199a82ff0c
commit
0371af3344
21 changed files with 440 additions and 280 deletions
pkg/kvsingle
|
@ -22,3 +22,7 @@ func (s *Value[K, V]) Get(ctx context.Context) (V, error) {
|
|||
func (s *Value[K, V]) Set(ctx context.Context, value V) error {
|
||||
return s.db.Set(ctx, s.Key, value)
|
||||
}
|
||||
|
||||
func (s *Value[K, V]) Edit(ctx context.Context, edit kv.Edit[V]) error {
|
||||
return s.db.Edit(ctx, s.Key, edit)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue