Molca.Networking.UtilsInterface:
ICacheServiceFile:
Packages/com.molca.core/Runtime/Networking/Utils/Caching/CacheManager.csType:
RuntimeSubsystem (child of RuntimeManager prefab)
When to use
UseCacheManager for caching network responses (textures, audio clips, data) to disk. It manages a persistent cache in Application.persistentDataPath/Network Cache/ with configurable type selection via CachingSelection flags.
⚠️ The static API (CacheManager.Cache,CacheManager.IsCached, etc.) is deprecated. Use theICacheServiceinstance interface.
Role
- Disk cache — stores cached data under
Application.persistentDataPath/Network Cache/. - Type selection —
CachingSelectionflags control which asset types are cached (Texture,AudioClip,Data). - Auto-validate — on initialization, validates cached files and removes stale or corrupted entries.
- Android storage permission — requests
ExternalStorageWritepermission on Android automatically.
Inspector configuration
API Reference
ICacheService (recommended)
Resolve viaRuntimeManager.GetService<ICacheService>() or [Inject] ICacheService.
Code
Related
- RuntimeManager —
CacheManageris a child subsystem - HttpClient — network responses can be cached through this manager
- Encryption — cache files can be encrypted at rest