public Long linsert(String key, BinaryClient.LIST_POSITION where, String pivot, String value) { Jedis jedis = getJedis(); Long linsert = jedis.linsert(key, where, pivot, value); close(jedis); return linsert; }
/** * 通过key在list指定的位置之前或者之后 添加字符串元素 * * @param key * @param where LIST_POSITION枚举类型 * @param pivot list里面的value * @param value 添加的value * @return */ public Long linsert(String key, ListPosition where, String pivot, String value) { Jedis jedis = getJedis(); Long linsert = jedis.linsert(key, where, pivot, value); close(jedis); return linsert; }