Versions in this module Expand all Collapse all v1 v1.2.0 May 15, 2024 Changes in this version + type Cache struct + func New(client *ent.Client) *Cache + func (v *Cache) Drop(id int) + func (v *Cache) FindByKey(kid types.KeyID) (*Token, bool) + func (v *Cache) Patch(kid types.KeyID, key *Token) + func (v *Cache) PollKeys(ctx context.Context, interval time.Duration) + func (v *Cache) Set(state State) + func (v *Cache) SyncKey(ctx context.Context, id int) error + func (v *Cache) SyncKeys(ctx context.Context) error + type State map[types.KeyID]*Token + type Token struct + AccessKey *types.AccessKey + DBToken *ent.Token