Skip to content

缺少BITFIELD命令 #186

Answered by 2881099
luoyunchong asked this question in Q&A
Discussion options

You must be logged in to vote

提交代码了,没来得及测试,API这样设计不知道是否灵活。

long[] results = cli.BitField(key, 
new BitFieldAction { BitFieldOperation.get, new object[] { "encoding", offset } },
new BitFieldAction { BitFieldOperation.set, new object[] { "encoding", offset, value } },
new BitFieldAction { BitFieldOperation.incrby, new object[] { "encoding", offset, increment } },
new BitFieldAction { BitFieldOperation.overflow_sat },
);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by luoyunchong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants