Package com.cxy.redisclient.integration.list

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


  public void addHead(int id, int db, String key, String value){
    List<String> values = new ArrayList<String>();
    values.add(value);
   
    AddList command = new AddList(id, db, key, values, false, true);
    command.execute();
   
  }
  public void addTail(int id, int db, String key, String value){
    List<String> values = new ArrayList<String>();
    values.add(value);
View Full Code Here

  public void addTail(int id, int db, String key, String value){
    List<String> values = new ArrayList<String>();
    values.add(value);
   
    AddList command = new AddList(id, db, key, values, true, true);
    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();
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.