9 lines
146 B
Go

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