magellan/internal/cache/cache.go
2024-08-07 10:59:10 -06:00

10 lines
242 B
Go

package cache
import "database/sql/driver"
type Cache[T any] interface {
CreateIfNotExists(path string) (driver.Connector, error)
Insert(path string, data ...T) error
Delete(path string, data ...T) error
Get(path string) ([]T, error)
}