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