过滤redis监视器lpush

问题描述

我有一个盒子,里面装着很多Redis东西。我将代码从写到通道转换为lpush。为了查看输出结果,我使用了redis-cli的monitor命令。有没有一种方法可以将监视器过滤为仅显示我感兴趣的lpush通道的命令。服务器上有很多东西,所以我无法捕获我的输出

作为参考,我使用redis-cli订阅频道名。但这不适用于lpush

解决方法

我要抹上它:

//Note: as a freebie,there are some error prevention that may occur in the future.

    if(url.match(/^https?:\/\/(www.youtube.com|youtube.com)\/playlist(.*)$/)){
                const playlist = await youtube.getPlaylist(url).catch(erro => {
                    return message.reply("A Playlist é privada ou não existe!")
                });
                const videos = await playlist.getVideos().catch(erro => { 
                    message.reply("Ocorreu um problema ao colocar um dos vídeos da playlist na fila!'")
                });
                for(const video of Object.values(videos)){
                    try{
                    const video2 = await youtube.getVideoByID(video.id)
                    await handleVideo(video2,message,voiceChannel,true)
                } catch {
                }
                }
                message.reply(`A playlist **${playlist.title}** foi adicionada a lista de músicas!`)
            }