Examples of execute()


Examples of com.cxy.redisclient.integration.list.AddList.execute()

import com.cxy.redisclient.integration.list.UpdateList;

public class ListService {
  public void add(int id, int db, String key, List<String> values, boolean headTail, boolean exist, int ttl) {
    AddList command = new AddList(id, db, key, values, headTail, exist);
    command.execute();
   
    if(ttl != -1){
      Expire command1 = new Expire(id, db, key, ttl);
      command1.execute();
    }
View Full Code Here

Examples of com.cxy.redisclient.integration.list.InsertList.execute()

    return command.getValues();
  }
 
  public void insert(int id, int db, String key, boolean beforeAfter, String pivot, String value){
    InsertList command = new InsertList(id, db, key, beforeAfter, pivot, value);
    command.execute();
  }
 
  public void setValue(int id, int db, String key, int index, String value) {
    SetValue command = new SetValue(id, db, key, index, value);
    command.execute();
View Full Code Here

Examples of com.cxy.redisclient.integration.list.ListList.execute()

    command1.execute();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
   
    ListList command = new ListList(id, db, key);
    command.execute();
    return command.getValues();
  }
 
  public void insert(int id, int db, String key, boolean beforeAfter, String pivot, String value){
    InsertList command = new InsertList(id, db, key, beforeAfter, pivot, value);
View Full Code Here

Examples of com.cxy.redisclient.integration.list.ListListPage.execute()

    command.execute();
   
  }
  public List<String> getPage(int id, int db, String key, int start, int end) {
    ListListPage command = new ListListPage(id, db, key, start, end);
    command.execute();
    return command.getPage();
   
  }
}
View Full Code Here

Examples of com.cxy.redisclient.integration.list.RemoveValue.execute()

    command.execute();
  }
 
  public void removeFirst(int id, int db, String key) {
    RemoveValue command = new RemoveValue(id, db, key, true);
    command.execute();
  }
 
  public void removeLast(int id, int db, String key) {
    RemoveValue command = new RemoveValue(id, db, key, false);
    command.execute();
View Full Code Here

Examples of com.cxy.redisclient.integration.list.SetValue.execute()

    command.execute();
  }
 
  public void setValue(int id, int db, String key, int index, String value) {
    SetValue command = new SetValue(id, db, key, index, value);
    command.execute();
  }
 
  public void removeFirst(int id, int db, String key) {
    RemoveValue command = new RemoveValue(id, db, key, true);
    command.execute();
View Full Code Here

Examples of com.cxy.redisclient.integration.list.UpdateList.execute()

  }
 
  public void update(int id, int db, String key, List<String> values, boolean headTail){
    UpdateList command = new UpdateList(id, db, key, values, headTail);
    command.execute();
  }
 
  public List<String> list(int id, int db, String key){
    IsKeyExist command1 = new IsKeyExist(id, db, key);
    command1.execute();
View Full Code Here

Examples of com.cxy.redisclient.integration.protocol.RedisSession.execute()

public class TestClient extends TestCase {
  public void testSet() throws IOException {
    RedisSession client = new RedisSession("localhost", 80);
    client.connect();
    Result result = client.execute("multi\r\n");
    System.out.println(result.getResult());
    result = client.execute("incr int\r\n");
    System.out.println(result.getResult());
    result = client.execute("incr int\r\n");
    System.out.println(result.getResult());
View Full Code Here

Examples of com.cxy.redisclient.integration.pubsub.Publish.execute()

import com.cxy.redisclient.integration.pubsub.Subscribe;

public class PubSubService {
  public void publish(int id, String channel, String message){
    Publish command = new Publish(id, channel, message);
    command.execute();
  }
 
  public void subscribe(int id, JedisPubSub callback, String channels){
    Subscribe command = new Subscribe(id, callback, channels);
    command.execute();
View Full Code Here

Examples of com.cxy.redisclient.integration.pubsub.Subscribe.execute()

    command.execute();
  }
 
  public void subscribe(int id, JedisPubSub callback, String channels){
    Subscribe command = new Subscribe(id, callback, channels);
    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.