コード例 #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());
        }
コード例 #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());
        }