Documentation
¶
Index ¶
- type Cache
- type TokenCache
- func (t *TokenCache) Clear()
- func (t *TokenCache) Count(ctx context.Context) (int64, error)
- func (t *TokenCache) Delete(ctx context.Context, id string) error
- func (t *TokenCache) Evict(id string)
- func (t *TokenCache) Find(ctx context.Context, query find.Query[*types.Token], ...) (database.Iterator[*types.Token], error)
- func (t *TokenCache) Get(ctx context.Context, id string) (*types.Token, error)
- func (t *TokenCache) Insert(ctx context.Context, token *types.Token) error
- func (t *TokenCache) SetSize(size int)
- func (t *TokenCache) Update(ctx context.Context, id string, updates updates.Updates[*types.Token]) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenCache ¶
type TokenCache struct {
// contains filtered or unexported fields
}
func NewTokenCache ¶
func NewTokenCache(supplier database.Controller[*types.Token], cacheSize int) *TokenCache
func (*TokenCache) Clear ¶
func (t *TokenCache) Clear()
func (*TokenCache) Evict ¶
func (t *TokenCache) Evict(id string)
func (*TokenCache) SetSize ¶
func (t *TokenCache) SetSize(size int)
Click to show internal directories.
Click to hide internal directories.