set method
Set a key-value pair
Implementation
Future<void> set(String key, String value, {Duration? ttl}) async {
if (ttl != null) {
await _client.send_object(['SETEX', key, ttl.inSeconds, value]);
} else {
await _client.send_object(['SET', key, value]);
}
}