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