> For the complete documentation index, see [llms.txt](https://enoch-app.gitbook.io/enoch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enoch-app.gitbook.io/enoch/api-references/unity-sdk/avatarcache.md).

# AvatarCache

Runtime avatar cache utilities for querying and clearing the current cache data.

### Public Methods <a href="#public-methods" id="public-methods"></a>

| Method                     | Returns | Description                                                                |
| -------------------------- | ------- | -------------------------------------------------------------------------- |
| `IsCacheEmpty()`           | bool    | Returns true if no avatars are stored in the persistent cache.             |
| `Clear()`                  | void    | Clears all avatar data from the persistent cache.                          |
| `ClearAvatar(string guid)` | void    | Clears data for a specific avatar GUID from the persistent cache.          |
| `GetAvatarCount()`         | long    | Returns number of avatars stored in the persistent cache.                  |
| `GetCacheSize()`           | int     | Returns total size of all avatars stored in the persistent cache in bytes. |
