Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议增加对模块的支持 #95

Open
woodcoal opened this issue May 7, 2022 · 3 comments
Open

建议增加对模块的支持 #95

woodcoal opened this issue May 7, 2022 · 3 comments

Comments

@woodcoal
Copy link

woodcoal commented May 7, 2022

请问支持自定义 cli 命令吗?
因为 Redis 支持加载模块,如 RedisJSON、 RedisTimeSeries 等
基本一个 Redis 可以走天下的感觉

那么因为模块的不同,适配的命令都将不一样。
如果不针对模块单独开发的话,请问是否支持自定义 cli 命令?

这样的话可以通过命令自行扩展操作

@2881099
Copy link
Owner

2881099 commented May 7, 2022

cli.Call("BF.RESERVE"
.InputKey(key)
.Input(errorRate, capacity)
.InputIf(expansion != 2, "EXPANSION", expansion)
.InputIf(nonScaling, "NONSCALING"), rt => rt.ThrowOrValue<object>());

@woodcoal
Copy link
Author

woodcoal commented May 7, 2022

GOOD!

看来是时候将 csredis 换成 FreeRedis 了

@2881099
Copy link
Owner

2881099 commented May 7, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants