Package com.cxy.redisclient.integration.set

Examples of com.cxy.redisclient.integration.set.AddSet.execute()


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();
    }
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();
   
  }
  public long addValues(int id, int db, String key, String[] values) {
    AddSet command = (AddSet) new AddSetFactory(id, db, key, values).getCommand();
View Full Code Here

    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();
  }
 
  public Set<String> list(int id, int db, String key) {
    IsKeyExist command1 = new IsKeyExist(id, db, key);
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.