UNPKG

@hotmeshio/hotmesh

Version:

Serverless Workflow

19 lines (18 loc) 1.06 kB
import { StoreInitializable } from '../store-initializable'; import { RedisRedisClientType as RedisClientType, RedisRedisMultiType as RedisMultiType } from '../../../../types/redis'; import { RedisStoreBase } from './_base'; declare class RedisStoreService extends RedisStoreBase<RedisClientType, RedisMultiType> implements StoreInitializable { constructor(storeClient: RedisClientType); /** * When in cluster mode, the transact wrapper only * sends commands to the same node/shard if they share a key. * All other commands are sent simultaneouslyusing Promise.all * and are then collated */ transact(): RedisMultiType; exec(...args: any[]): Promise<string | string[] | string[][]>; setnxex(key: string, value: string, expireSeconds: number): Promise<boolean>; zAdd(key: string, score: number | string, value: string | number, redisMulti?: RedisMultiType): Promise<any>; zRangeByScore(key: string, score: number | string, value: string | number): Promise<string | null>; } export { RedisStoreService };