Package com.cxy.redisclient.integration.zset

Examples of com.cxy.redisclient.integration.zset.AddZSet.execute()


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();
    }
View Full Code Here


    command.execute();
    return command.getPage();
  }
  public void addValues(int id, int db, String key, Map<String, Double> values) {
    AddZSet command = (AddZSet) new AddZSetFactory(id, db, key, values).getCommand();
    command.execute();
  }
  public void removeMembers(int id, int db, String key, String[] members){
    RemoveMembers command = new RemoveMembers(id, db, key, members);
    command.execute();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.