createRedisStateProviderConformanceContext

FunctionExperimental

Signature

function createRedisStateProviderConformanceContext(__namedParameters): RedisStateProviderConformanceContext;

redis/src/conformance/state-provider-conformance.ts:193

Parameters

  • __namedParameters
    object
  • __namedParameters.createStateProvider
    () => Promise<RedisStateProvider>
    Creates the provider under test. Each case's adapter gets its own provider and closes it when the case ends, so closing one must not release resources the next one needs, such as the client connection.
  • __namedParameters.stateAdapterOptions?
    Omit<{ countCap?: number; generateJobId?: () => string; generateWorkerId?: () => string; keyPrefix?: string; maxBlockersPerJob?: number; maxTransactionTries?: number; stateProvider: RedisStateProvider; validateJobId?: (id) => boolean; validateWorkerId?: (id) => boolean; }, "stateProvider" | "keyPrefix">
    Options every adapter of the suite is created with, besides its provider and keyPrefix, such as the ID generators your application configures. Each case still writes under a key prefix of its own.

Returns

Used in guides

esc

Search guides, integrations and every exported symbol.

↑ ↓ to navigate↵ to open