Class: UserInfoCache
Hierarchy
-
AbstractCacheAdapter
<UserinfoResponse
, [string
]>↳
UserInfoCache
Constructors
constructor
• new UserInfoCache(config
): UserInfoCache
Parameters
Name | Type |
---|---|
config | UserInfoCacheConfig |
Returns
Overrides
AbstractCacheAdapter<UserinfoResponse, [string]>.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
Name | Type |
---|---|
validatedAccessJwt | string |
Returns
Promise
<undefined
| UserinfoResponse
>
Defined in
packages/backend/server/src/cache-adapters/user-info-cache.ts:35
invalidateCache
▸ invalidateCache(key
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
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
Name | Type |
---|---|
validatedJwt | string |
Returns
Promise
<void
>
Overrides
AbstractCacheAdapter.invalidateFromJwt
Defined in
packages/backend/server/src/cache-adapters/user-info-cache.ts:31