kvs/kv/kvs.go
2023-04-18 14:24:20 +08:00

15 lines
247 B
Go

package kv
import (
"github.com/tursom/GoCollections/exceptions"
"github.com/tursom/GoCollections/lang"
)
type (
Store[K, V any] interface {
lang.Object
Put(key K, value V) exceptions.Exception
Get(key K) (V, exceptions.Exception)
}
)