magellan/internal/cache/cache.go
2024-08-07 13:15:16 -06:00

12 lines
247 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)
}