Skip to content

setMaximumSizeBytes api

Chris Hafey edited this page May 6, 2014 · 1 revision

The setMaximumSizeBytes api call is used to set the maximum number of bytes for cornerstone to use for cacheing images. If the cache size exceeds the new maximum size, images will be purged until this is no longer the case. A size of 0 will completely disable the cache.

function setMaximumSizeBytes(numBytes);

Parameters:

  • numBytes - the new maximum size of the image cache in bytes

Returns: Nothing