@universal-packages/token-registry-redis v1.4.2
Token Registry Redis
Redis engine for universal-token-registry.
Install
npm install @universal-packages/token-registry-redis
npm install @universal-packages/token-registry
npm install redisRedisEngine
Just pass this engine to the registry to enable it to use ready as the storage engine.
import { Registry } from '@universal-packages/universal-token-registry'
import { RedisEngine } from '@universal-packages/universal-token-registry-redis'
const registry = new Registry({ engine: 'redis', engineOptions: { host: 'localhost' } })
await registry.prepare()Options
RedisEngine takes the same options as the redis client.
Additionally takes the following ones:
clientRedisClientIf you already have a client working in your app you can pass the instance here to not connect another client inside the instance.globalClientStringIf the redis client lives in a global variable, name it here.identifierStringString to prepend for identifying the registry related keys.expireAfternumberTime in seconds to expire the tokens after, default is never expire.
Typescript
This library is developed in TypeScript and shipped fully typed.
Contributing
The development of this library happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving this library.
License
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago