-
Notifications
You must be signed in to change notification settings - Fork 0
Caching
Jan0660 edited this page Nov 7, 2020
·
1 revision
This wrapper caches Ships/other data the first time they're requested, for example: GetShip, GetShipByEnglishName, GetAllChapters, ...
You can also cache the data asynchronously or reload it by using the ReloadXAsync methods or even cache everything with ReloadEverythingAsync.
You can disable caching by changing EnableCaching in the AzurAPIClientOptions you're using with your AzurAPIClient to false, but this will probably cost you a lot of performance.
like this:
var Client = new AzurAPIClient(new AzurAPIClientOptions(){ EnableCaching=false });
// this will cache the ships even though EnableCaching is set to false
Client.ReloadShipsAsync();