赞
踩
使用案例:
public void test2() {
BoundSetOperations operations = redisTemplate.boundSetOps("user:tags:1");
operations.add("car", "student", "rich", "guangdong", "dog", "rich");
Set<String> set1 = operations.members();
System.out.println(set1);
operations.remove("dog");
Set<String> set2 = operations.members();
System.out.println(set2);
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。