public async Task AppendList <T>(string key, T value) { var serializedValue = _serializer.Serialize(value); await _database.ListRightPushAsync(key, serializedValue).ConfigureAwait(false); }
public async Task Publish <T>(string channel, T message) { var value = _serializer.Serialize(message); await _database.PublishAsync(channel, value).ConfigureAwait(false); }