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

> `const` **ssResourceCache**: [`SsRefCache`](../classes/SsRefCache.md)<[`SsResource`](../interfaces/SsResource.md)>

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

Loaded `.ssab` resources, keyed by resolved URI.

The expensive halves are reading the bytes and having the Brain parse them,
and both are per-pack rather than per-player — so twenty sprites of one
character cost one of each. Keyed on the **resolved** URI so `'ss/a.ssab'`
and `{ uri: 'ss/a.ssab' }` are the same entry.

Disposed on the last release, which is what keeps `SsRuntime.liveHandles`
exact — see `SsRefCache`.
