import { IThrottlingMetrics , IThrottleStorageManager } from "@fluidframework/server-services-core" ; /**
 * In-memory cache implementation of IThrottleManager for testing
 */ export class TestThrottleStorageManager implements IThrottleStorageManager { private readonly cache : { [ key ] : IThrottlingMetrics ; } = { } ; async setThrottlingMetric ( id , throttleMetric ) { this . cache [ id ] = throttleMetric ; } async getThrottlingMetric ( id ) { return this . cache [ id ] ; } }