Versions in this module Expand all Collapse all v0 v0.1.1 May 13, 2025 Changes in this version + var ErrEdgesNotFound = errors.New("edges not found in cache") + var ErrEntityNotFound = fmt.Errorf("entity not found in cache") + var ErrFieldsNotFound = errors.New("fields not found in cache") + func NewEdgeCache(ttl time.Duration) + func NewEntityCache(ttl time.Duration) + func NewFieldCache(ttl time.Duration) + type Cache struct + Values map[K]Item[V] + var Edge Cache[string, []entity.Edge] + var Field Cache[string, []entity.Field] + func NewCache[K comparable, V any](ttl time.Duration) Cache[K, V] + func (c *Cache[K, V]) Delete(key K) + func (c *Cache[K, V]) Get(key K) (V, bool) + func (c *Cache[K, V]) GetAll() []V + func (c *Cache[K, V]) Set(key K, val V) + type EntityCache struct + var Entity EntityCache + func (c *EntityCache) GetByUniqueInput(where entity.EntityWhereUniqueInput) (entity.Entity, bool) + type Item struct + Value V v0.1.0-mod2 May 13, 2025