UNPKG

@sophons/redis

Version:

🏡 Encapsulate common business methods for Redis

22 lines (21 loc) 390 B
export interface PublishOptions { channel: string; message: any; setJson?: boolean; } export interface MutexOptions { key: string; ttl?: number; next: Function; message?: string; } export interface CacheOptions { key: string; ttl: number; next: Function; } export interface HashCacheOptions { hkey: string; key: string; next: Function; }