Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEdgesNotFound = errors.New("edges not found in cache")
)
View Source
var (
ErrEntityNotFound = fmt.Errorf("entity not found in cache")
)
View Source
var (
ErrFieldsNotFound = errors.New("fields not found in cache")
)
Functions ¶
func NewEdgeCache ¶
func NewEntityCache ¶
func NewFieldCache ¶
Types ¶
type Cache ¶
type Cache[K comparable, V any] struct { Values map[K]Item[V] // contains filtered or unexported fields }
type EntityCache ¶
var Entity EntityCache
func (*EntityCache) GetByUniqueInput ¶
func (c *EntityCache) GetByUniqueInput(where entity.EntityWhereUniqueInput) (entity.Entity, bool)
Click to show internal directories.
Click to hide internal directories.