8910111213141516171819
import com.cxy.redisclient.service.SetService; public class SetTest extends TestCase { public void testAdd() { SetService service = new SetService(); Set<String> values = new HashSet<String>(); values.add("hello1"); values.add("world1"); service.add(1, 0, "myset", values, -1); }
171819202122232425262728
service.add(1, 0, "myset", values, -1); } public void testRemove() { SetService service = new SetService(); Set<String> values = new HashSet<String>(); values.add("hello1"); values.add("world1"); service.remove(1, 0, "myset", values); }
1415161718192021
} @Override public void initPage(int start, int end) { this.start = start; SetService service = new SetService(); page = service.getPage(id, db, key, start, end); }