2881099 / FreeRedis

🦄 FreeRedis is .NET40+ redis client. supports cluster, sentinel, master-slave, pub-sub, lua, pipeline, transaction, streams, client-side-caching, and pooling.
MIT License
911 stars 160 forks source link

PubSubNumPat命令调用错误 #150

Open edwardzhu opened 1 year ago

edwardzhu commented 1 year ago

根据redis文档,应该没有参数,并且调用PUBSUB这个主命令。

但是在代码中,

public Task<long> PubSubNumPatAsync(string message) => CallAsync("PUBLISH".SubCommand("NUMPAT").InputRaw(message), rt => rt.ThrowOrValue<long>());

public long PubSubNumPat(string message) => Call("PUBLISH".SubCommand("NUMPAT").InputRaw(message), rt => rt.ThrowOrValue<long>());

命令和参数调用错误

2881099 commented 1 year ago

收到,以后若是有条件可以 PR 一下