const usersCache = new Map() function putUser(userId, userObject) { return usersCache.set(userId, userObject) } function getUser(userId) { return usersCache.get(userId) } function deleteUser(userId) { return usersCache.delete(userId) } module.exports = { users: { put: putUser, get: getUser, delete: deleteUser } }