Function: createAndCacheVolume()
createAndCacheVolume(
volumeId,options?):Promise<IImageVolume|IStreamingImageVolume>
Loads an image given an volumeId and optional priority and returns a promise which will resolve to the loaded image object or fail if an error occurred. The image is stored in the cache.
Parameters
• volumeId: string
A Cornerstone Image Object's volumeId
• options?: VolumeLoaderOptions
Options to be passed to the Volume Loader
Returns
Promise<IImageVolume | IStreamingImageVolume>
Volume Loader Object