Ejemplo n.º 1
0
        private async Task <byte[]> RPopLPushCoreAsync(byte[] source, byte[] destination)
        {
            using var connection = new RedisConnection(_connectionSettings);
            var command = new RPopLPush(connection.GetStream(), source, destination);

            return(await command.ExecuteAsync());
        }
Ejemplo n.º 2
0
        private byte[] RPopLPushCore(byte[] source, byte[] destination)
        {
            using var connection = new RedisConnection(_connectionSettings);
            var command = new RPopLPush(connection.GetStream(), source, destination);

            return(command.Execute());
        }