9 lines
146 B
Go
Raw Normal View History

2023-07-07 16:05:52 +00:00
package ocean
type Storage[T any] interface {
2023-07-08 15:26:36 +00:00
Delete(key string) error
2023-07-07 16:05:52 +00:00
Init(c *collection[T]) error
Set(key string, value *T) error
2023-07-08 15:26:36 +00:00
Sync()
2023-07-07 16:05:52 +00:00
}