9 lines
146 B
Go

package ocean
type Storage[T any] interface {
Init(data StorageData) error
Delete(key string) error
Set(key string, value *T) error
Sync()
}