private async Task <long> RPushXCoreAsync(byte[] key, byte[] value) { using var connection = new RedisConnection(_connectionSettings); var command = new RPushX(connection.GetStream(), key, value); return(await command.ExecuteAsync()); }
private long RPushXCore(byte[] key, byte[] value) { using var connection = new RedisConnection(_connectionSettings); var command = new RPushX(connection.GetStream(), key, value); return(command.Execute()); }