redis-smq-common
Version:
RedisSMQ Common Library provides many components that are mainly used by RedisSMQ and RedisSMQ Monitor.
26 lines • 1.26 kB
TypeScript
import { Redis } from 'ioredis';
import { ICallback } from '../../../async/index.js';
import { IRedisTransaction } from '../../types/index.js';
export declare class IoredisClientMulti implements IRedisTransaction {
protected multi: import("ioredis").ChainableCommander;
constructor(client: Redis);
lrem(key: string, count: number, element: string): this;
lpop(key: string): this;
lpush(key: string, element: string): this;
ltrim(key: string, start: number, stop: number): this;
rpop(key: string): this;
rpush(key: string, element: string): this;
zadd(key: string, score: number, element: string): this;
zrem(key: string, element: string | string[]): this;
sadd(key: string, element: string): this;
srem(key: string, element: string | string[]): this;
hset(key: string, field: string, value: string | number): this;
hdel(key: string, field: string | string[]): this;
hincrby(key: string, field: string, by: number): this;
pexpire(key: string, millis: number): this;
expire(key: string, secs: number): this;
rpoplpush(source: string, destination: string): this;
del(key: string | string[]): this;
exec(cb: ICallback<unknown[]>): void;
}
//# sourceMappingURL=ioredis-client-multi.d.ts.map