import com.cxy.redisclient.integration.zset.ListZSetPage;
import com.cxy.redisclient.integration.zset.RemoveMembers;
public class ZSetService {
public void add(int id, int db, String key, Map<String, Double> values, int ttl) {
AddZSet command = (AddZSet) new AddZSetFactory(id, db, key, values).getCommand();
command.execute();
if(ttl != -1){
Expire command1 = new Expire(id, db, key, ttl);
command1.execute();
}