@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
13 lines (11 loc) • 369 B
text/typescript
import { RedisOptions, ClusterNode, ClusterOptions } from 'ioredis';
type clusterConfig = {
cluster: boolean,
nodes: ClusterNode[],
} & ClusterOptions
export interface RedisConfigInterface {
default: RedisOptions | clusterConfig,
schedule: RedisOptions | clusterConfig,
cache: RedisOptions | clusterConfig,
[key: string]: RedisOptions | clusterConfig,
}