unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
15 lines (14 loc) • 619 B
TypeScript
import { ISession, ISessionStore } from '../../lib/types/stores/session-store';
export default class FakeSessionStore implements ISessionStore {
private sessions;
getActiveSessions(): Promise<ISession[]>;
destroy(): void;
exists(key: string): Promise<boolean>;
getAll(): Promise<ISession[]>;
getSessionsForUser(userId: number): Promise<ISession[]>;
deleteSessionsForUser(userId: number): Promise<void>;
deleteAll(): Promise<void>;
delete(sid: string): Promise<void>;
get(sid: string): Promise<ISession>;
insertSession(data: Omit<ISession, 'createdAt'>): Promise<ISession>;
}