mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Major 'internal' package refactor
This commit is contained in:
parent
2c841906b2
commit
6d1dae25ec
9 changed files with 359 additions and 191 deletions
10
internal/cache/cache.go
vendored
Normal file
10
internal/cache/cache.go
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue