Skip to content

RedisAdapter

Redis data adapter

  • Usage: const dataAdapter = new RedisAdapter();
  • Not recommended for use in production.

See

ioredis

Implements

Constructors

new RedisAdapter()

new RedisAdapter(options?): RedisAdapter

Parameters

options?: RedisOptions

Returns

RedisAdapter

Defined in

src/dataAdapters/RedisAdapter.ts:22

Properties

db

db: Redis

Database

Defined in

src/dataAdapters/RedisAdapter.ts:19


options

options: RedisOptions

Defined in

src/dataAdapters/RedisAdapter.ts:20

Methods

close()

close(): Promise<void>

Returns

Promise<void>

Implementation of

OIDCClientDataAdapter.close

Defined in

src/dataAdapters/RedisAdapter.ts:83


delete()

delete(sessionId): Promise<void>

Parameters

sessionId: string

Session ID

Returns

Promise<void>

Implementation of

OIDCClientDataAdapter.delete

Defined in

src/dataAdapters/RedisAdapter.ts:75


fetch()

fetch(sessionId): Promise<null | OIDCClientSession>

Parameters

sessionId: string

Session ID

Returns

Promise<null | OIDCClientSession>

Implementation of

OIDCClientDataAdapter.fetch

Defined in

src/dataAdapters/RedisAdapter.ts:31


flushAll()

flushAll(): Promise<void>

Returns

Promise<void>

Defined in

src/dataAdapters/RedisAdapter.ts:88


insert()

insert(session): Promise<void>

Parameters

session: OIDCClientSession

Session

Returns

Promise<void>

Implementation of

OIDCClientDataAdapter.insert

Defined in

src/dataAdapters/RedisAdapter.ts:47


prune()

prune(): void

Returns

void

Implementation of

OIDCClientDataAdapter.prune

Defined in

src/dataAdapters/RedisAdapter.ts:80


update()

update(session): Promise<void>

Parameters

session: OIDCClientSession

Session

Returns

Promise<void>

Implementation of

OIDCClientDataAdapter.update

Defined in

src/dataAdapters/RedisAdapter.ts:61