Skip to main content

Class: UserInfoCache

Hierarchy

  • AbstractCacheAdapter<UserinfoResponse, [string]>

    UserInfoCache

Constructors

constructor

new UserInfoCache(config): UserInfoCache

Parameters

NameType
configUserInfoCacheConfig

Returns

UserInfoCache

Overrides

AbstractCacheAdapter&lt;UserinfoResponse, [string]&gt;.constructor

Defined in

packages/backend/server/src/cache-adapters/user-info-cache.ts:19

Properties

cacheConfig

Protected cacheConfig: CacheAdapterConfig

Inherited from

AbstractCacheAdapter.cacheConfig

Defined in

packages/backend/server/src/cache-adapters/abstract-cache-adapter.ts:13


cacheProvider

Protected cacheProvider: CacheProvider<UserinfoResponse, [string]>

Overrides

AbstractCacheAdapter.cacheProvider

Defined in

packages/backend/server/src/cache-adapters/user-info-cache.ts:17


config

Protected config: UserInfoCacheConfig

Overrides

AbstractCacheAdapter.config

Defined in

packages/backend/server/src/cache-adapters/user-info-cache.ts:16

Methods

getUserInfo

getUserInfo(validatedAccessJwt): Promise<undefined | UserinfoResponse>

Parameters

NameType
validatedAccessJwtstring

Returns

Promise<undefined | UserinfoResponse>

Defined in

packages/backend/server/src/cache-adapters/user-info-cache.ts:35


invalidateCache

invalidateCache(key): Promise<void>

Parameters

NameType
keystring

Returns

Promise<void>

Inherited from

AbstractCacheAdapter.invalidateCache

Defined in

packages/backend/server/src/cache-adapters/abstract-cache-adapter.ts:25


invalidateFromJwt

invalidateFromJwt(validatedJwt): Promise<void>

Parameters

NameType
validatedJwtstring

Returns

Promise<void>

Overrides

AbstractCacheAdapter.invalidateFromJwt

Defined in

packages/backend/server/src/cache-adapters/user-info-cache.ts:31