Package com.cxy.redisclient.integration.zset

Examples of com.cxy.redisclient.integration.zset.AddZSet


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


    ListZSetPage command = new ListZSetPage(id, db, key, start, end);
    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();
  }
View Full Code Here

TOP

Related Classes of com.cxy.redisclient.integration.zset.AddZSet

Copyright © 2018 www.massapicom. 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.