workadventure/back/src/Services/Repository/VariablesRepositoryInterface.ts
2021-07-19 16:23:16 +02:00

11 lines
348 B
TypeScript

export interface VariablesRepositoryInterface {
/**
* Load all variables for a room.
*
* Note: in Redis, variables are stored in a hashmap and the key is the roomUrl
*/
loadVariables(roomUrl: string): Promise<{ [key: string]: string }>;
saveVariable(roomUrl: string, key: string, value: string): Promise<number>;
}