Baseflow / flutter_cache_manager

Generic cache manager for flutter
https://baseflow.com
MIT License
739 stars 427 forks source link

support mtls. #381

Closed serraojoao closed 2 years ago

serraojoao commented 2 years ago

💬 Questions and Help

Hi,

Does the flutter_cache_manager supports mutual tls? I've look over the documentation/classes but could not find any references.

serraojoao commented 2 years ago

Solved it by creating a custom instance with fileService parameter.

CacheManager instance = CacheManager( Config( key, stalePeriod: Duration(seconds: 30), maxNrOfCacheObjects: 1000, fileService: HttpFileService(httpClient: client), ), );

client is an instance of IOClient with the mtls securityContext configurations.