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

Update README.md #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
| 14 | Long incrBy(String key, long increment) | 增加(自增长), 负数则为自减 |
| 15 | Double incrByFloat(String key, double increment) | 增加(自增长), 负数则为自减 |
| 16 | Long size(String key) | 获取字符串的长度 |
| 17 | setnx | 添加一个String类型的键值对,前提是这个key不存在,否则不执行 |
| 18 | setex |添加String类型的键值对,并且指定有效期

------

Expand Down Expand Up @@ -133,6 +135,9 @@ Long sAdd(String key, String... values);
//获取集合所有元素
Set<String> sMembers(String key);

//判断一个元素是否存在与set中
Sismember key member

//获取集合大小
Long sSize(String key);

Expand Down