redis.clients.jedis.Jedis.select()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(358)

本文整理了Java中redis.clients.jedis.Jedis.select()方法的一些代码示例,展示了Jedis.select()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jedis.select()方法的具体详情如下:
包路径:redis.clients.jedis.Jedis
类名称:Jedis
方法名:select

Jedis.select介绍

暂无

代码示例

代码示例来源:origin: caoxinyu/RedisClient

@Override
public void command() {
  jedis.select(db);
  jedis.set(key, value);
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
public void command() {
  jedis.select(db);
  value = jedis.get(key);
}

代码示例来源:origin: mpusher/mpush

public Jedis getJedisConnection() {
  Jedis jedis = fetchJedisConnector();
  if (dbIndex > 0 && jedis != null) {
    jedis.select(dbIndex);
  }
  return jedis;
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  jedis.srem(key, values);
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  for(String value: values)
    jedis.srem(key, value);
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  jedis.lset(key, index, value);
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  page = jedis.lrange(key, start, end);
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  page = jedis.zrangeWithScores(key, start, end);
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  values = jedis.lrange(key, 0, -1);
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  values = jedis.zrangeWithScores(key, 0, -1);
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  value = jedis.dump(key);
  
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  size = getSize(key);
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  jedis.linsert(key, beforeAfter?LIST_POSITION.BEFORE:LIST_POSITION.AFTER, pivot, value);
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  value = jedis.hgetAll(key);
  
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  jedis.hset(key, field, value);
  
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  idleTime = jedis.objectIdletime(key);
  
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
public void command() {
  jedis.select(db);
  Set<String> nodekeys = jedis.keys("*");
  Iterator<String> it = nodekeys.iterator();
  while (it.hasNext()) {
    String key = (String)it.next();
    NodeType nodeType = getValueType(key);
    
    Node node = new Node(id, db, key, nodeType);
    nodes.add(node);
  }
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  if(second != -1)
    jedis.expire(key, second);
  else
    jedis.persist(key);
  
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  if(headTail){
    jedis.lpop(key);
  } else {
    jedis.rpop(key);
  }
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void command() {
  jedis.select(db);
  if(jedis.exists(key) && getValueType(key) != NodeType.HASH)
    throw new RuntimeException(RedisClient.i18nFile.getText(I18nFile.HASHEXIST)+ key);
  jedis.hmset(key, values);
}

相关文章

Jedis类方法