# Class: IconImageCache

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/style/IconImageCache~IconImageCache

Singleton class. Available through `shared`.

### Methods

#### setSize(maxCacheSize)

style/IconImageCache.js, line 134

  Set the cache size of the icon cache. Default is `1024`. Change this value when your map uses more than 1024 different icon images and you are not caching icon styles on the application level.

  Name | Type | Description
  --- | --- | ---
  `maxCacheSize` | number | Cache max size.