syntropylog
Version:
An instance manager with observability for Node.js applications
17 lines (16 loc) • 457 B
TypeScript
/**
* FILE: src/services/UserService.ts
* DESCRIPTION: An example service to demonstrate testing with BeaconRedisMock.
*/
import { IBeaconRedis } from '../redis/IBeaconRedis';
export interface User {
id: string;
name: string;
email: string;
}
export declare class UserService {
private readonly redis;
private readonly userCacheTtl;
constructor(redisClient: IBeaconRedis);
getUserById(userId: string): Promise<User | null>;
}