initCacheStorage method

Future<void> initCacheStorage()

Initializes the cache storage system for the SDK.

This method sets up the local storage system used for caching merchant data, tokens, and other SDK configuration information. It must be called before using any other SDK functionality.

Returns

A Future&lt;void&gt; that completes when cache initialization is finished.

Throws

Example

try {
  await SdkBuilder.instance.initCacheStorage();
  print('Cache storage initialized successfully');
} catch (e) {
  print('Failed to initialize cache: $e');
}

Implementation

Future<void> initCacheStorage() async =>
    await CacheStorageHandler.instance.init();