RedisStateAdapter
TypeExperimentalSignature
type RedisStateAdapter = StateAdapter<RedisContext, string, string, "async"> & {
migrateToLatest: () => Promise<MigrationResult>;
};redis/src/state-adapter/state-adapter.redis.ts:270
A state adapter that keeps Queuert's chains, jobs and workers in Redis.
Type Declaration
- migrateToLatest()(
) => Promise<MigrationResult>Bring the adapter's keys to the latest schema version. Run it before the adapter writes: until it has run, every write other than deleting chains and stopping workers fails at commit withSchemaFencedError. Processes may run it at once; one migrates and the others wait for it.