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

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

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

Jedis.linsert介绍

暂无

代码示例

代码示例来源:origin: sohutv/cachecloud

@Override
 public Long execute(Jedis connection) {
  return connection.linsert(key, where, pivot, value);
 }
}.run(key);

代码示例来源:origin: sohutv/cachecloud

@Override
 public Long execute(Jedis connection) {
  return connection.linsert(key, where, pivot, value);
 }
}.runBinary(key);

代码示例来源:origin: sohutv/cachecloud

public Long execute(Jedis connection) {
    return connection.linsert(keyByte, where, pivot, value);
  }
}.runBinary(keyByte);

代码示例来源:origin: sohutv/cachecloud

@Override
public Long linsert(String key, LIST_POSITION where, String pivot, String value) {
 Jedis j = getShard(key);
 return j.linsert(key, where, pivot, value);
}

代码示例来源:origin: sohutv/cachecloud

@Override
public Long linsert(byte[] key, LIST_POSITION where, byte[] pivot, byte[] value) {
 Jedis j = getShard(key);
 return j.linsert(key, where, pivot, value);
}

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

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

代码示例来源:origin: Netflix/conductor

@Override
public Long linsert(String key, LIST_POSITION where, String pivot, String value) {
 Jedis jedis = null;
  try {
   jedis = jedisPool.getResource();
   return jedis.linsert(key, where, pivot, value);
  } finally {
   if (jedis != null)
    jedis.close();
  }
}

代码示例来源:origin: spring-projects/spring-data-redis

@Override
public Long lInsert(byte[] key, Position where, byte[] pivot, byte[] value) {
  Assert.notNull(key, "Key must not be null!");
  try {
    if (isPipelined()) {
      pipeline(connection.newJedisResult(
          connection.getRequiredPipeline().linsert(key, JedisConverters.toListPosition(where), pivot, value)));
      return null;
    }
    if (isQueueing()) {
      transaction(connection.newJedisResult(
          connection.getRequiredTransaction().linsert(key, JedisConverters.toListPosition(where), pivot, value)));
      return null;
    }
    return connection.getJedis().linsert(key, JedisConverters.toListPosition(where), pivot, value);
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

代码示例来源:origin: io.leopard/leopard-redis

@Override
  public Object execute(Jedis jedis) {
    return jedis.linsert(key, where, pivot, value);
  }
});

代码示例来源:origin: apache/servicemix-bundles

@Override
 public Long execute(Jedis connection) {
  return connection.linsert(key, where, pivot, value);
 }
}.runBinary(key);

代码示例来源:origin: yrain/smart-cache

@Override
  Long doInJedis(Jedis jedis) {
    return jedis.linsert(key, where, pivot, value);
  }
});

代码示例来源:origin: yrain/smart-cache

@Override
  Long doInJedis(Jedis jedis) {
    return jedis.linsert(key, where, pivot, value);
  }
});

代码示例来源:origin: apache/servicemix-bundles

@Override
public Long linsert(final String key, final ListPosition where, final String pivot, final String value) {
 Jedis j = getShard(key);
 return j.linsert(key, where, pivot, value);
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public Long linsert(final byte[] key, final ListPosition where, final byte[] pivot, final byte[] value) {
 Jedis j = getShard(key);
 return j.linsert(key, where, pivot, value);
}

代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis

@Override
public Long linsert(String key, BinaryClient.LIST_POSITION where, String pivot, String value) {
 String command = "linsert";
 return instrumented(command, payloadSize(value), () -> delegated.linsert(key, where, pivot, value));
}

代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis

@Override
public Long linsert(byte[] key, BinaryClient.LIST_POSITION where, byte[] pivot, byte[] value) {
 String command = "linsert";
 return instrumented(command, payloadSize(value), () -> delegated.linsert(key, where, pivot, value));
}

代码示例来源:origin: org.nutz/nutz-integration-jedis

public Long linsert(String key, LIST_POSITION where, String pivot, String value) {
  Jedis jedis = getJedis();
  try {
    return jedis.linsert(key, where, pivot, value);
  } finally {Streams.safeClose(jedis);}
}

代码示例来源:origin: org.nutz/nutz-integration-jedis

public Long linsert(byte[] key, LIST_POSITION where, byte[] pivot, byte[] value) {
  Jedis jedis = getJedis();
  try {
    return jedis.linsert(key, where, pivot, value);
  } finally {Streams.safeClose(jedis);}
}

代码示例来源:origin: com.netflix.conductor/conductor-redis-persistence

@Override
public Long linsert(String key, LIST_POSITION where, String pivot, String value) {
 Jedis jedis = null;
  try {
   jedis = jedisPool.getResource();
   return jedis.linsert(key, where, pivot, value);
  } finally {
   if (jedis != null)
    jedis.close();
  }
}

代码示例来源:origin: io.enoa/nosql-redis

default Long linsert(String key, BinaryClient.LIST_POSITION where, Object pivot, Object value) {
 return this.run((jedis, serializer) -> jedis.linsert(SafeEncoder.encode(key), where,
  serializer.serialize(pivot),
  serializer.serialize(value)));
}

相关文章

微信公众号

最新文章

更多

Jedis类方法