Package com.cxy.redisclient.integration.set

Examples of com.cxy.redisclient.integration.set.AddSet


import com.cxy.redisclient.integration.set.RemoveSet;
import com.cxy.redisclient.integration.set.RemoveSetFactory;

public class SetService {
  public long add(int id, int db, String key, Set<String> values, int ttl) {
    AddSet command = (AddSet) new AddSetFactory(id, db, key, values).getCommand();
    command.execute();
   
    if(ttl != -1){
      Expire command1 = new Expire(id, db, key, ttl);
      command1.execute();
    }
    return command.getSize();

  }
View Full Code Here


    }
    return command.getSize();

  }
  public long addValues(int id, int db, String key, Set<String> values) {
    AddSet command = (AddSet) new AddSetFactory(id, db, key, values).getCommand();
    command.execute();
    return command.getSize();
   
  }
View Full Code Here

    command.execute();
    return command.getSize();
   
  }
  public long addValues(int id, int db, String key, String[] values) {
    AddSet command = (AddSet) new AddSetFactory(id, db, key, values).getCommand();
    command.execute();
    return command.getSize();
  }
View Full Code Here

TOP

Related Classes of com.cxy.redisclient.integration.set.AddSet

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.