setSecureData<T> method
Set shared data with optional encryption and time-to-live (TTL).
This provides a secure way to share data between modules with built-in protection and automatic expiration.
Implementation
void setSecureData<T>(
String key,
T value, {
bool encrypt = false,
Duration? ttl,
}) {
services.setSecureData<T>(
key,
value,
callerModuleId: moduleId,
encrypt: encrypt,
ttl: ttl,
);
}