import VolumeCache from './VolumeCache'; import { DicomVolumeMetadata } from '../DicomVolumeLoader'; /** * Provides a simple in-memory volume cache which is available only while the * browser window is open. * The created cache will be injected to `RsVolumeLoader`. */ export default class MemoryVolumeCache implements VolumeCache { private _metadata; private _volume; constructor(); getMetadata(key: string): Promise; putMetadata(key: string, data: DicomVolumeMetadata): Promise; getVolume(key: string): Promise; putVolume(key: string, data: ArrayBuffer): Promise; }