---
url: https://cri-middleware.github.io/SSPlayerForReactNative/api/variables/ssImageCache.md
---
# Variable: ssImageCache

> `const` **ssImageCache**: [`SsRefCache`](../classes/SsRefCache.md)<[`SkImage`](https://wcandillon.github.io/react-native-skia/)>

Defined in: [packages/react-native-spritestudio/src/core/caches.ts:30](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/core/caches.ts#L30)

Decoded atlases, keyed by resolved image URI.

Not disposed on eviction, and deliberately so: `SsTextureRegistry` already
states that it does not own the `SkImage`s handed to it, because one can be
inside a recorded-but-not-yet-rasterised `SkPicture` when its last registry
goes. Dropping the reference and leaving it to the collector is the existing
contract; this cache only stops the *decode* happening twice.
