CacheKeys class

Constants defining the cache storage keys used by the SDK.

This class provides a centralized location for all cache key constants, ensuring consistency and preventing typos when accessing cached data.

Available Keys

Usage Example

// Store merchant ID
await CacheStorageHandler.instance.write(CacheKeys.merchantId, 'merchant_123');

// Retrieve merchant ID
final merchantId = CacheStorageHandler.instance.read<String>(CacheKeys.merchantId);

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

merchantData → const String
Cache key for storing merchant data and configuration.
merchantFlavor → const String
Cache key for storing merchant flavor configuration.
merchantId → const String
Cache key for storing the merchant identifier.
merchantName → const String
Cache key for storing the merchant display name.
sessionToken → const String
Cache key for storing the session authentication token.
terminals → const String
Cache key for storing terminal configuration data.
token → const String
Cache key for storing the authentication token.