Available Methods
- close ( )
- set ( )
- del ( )
- get ( )
- exists ( )
- expire ( )
- select ( )
- hset ( )
- rpush ( )
- publish ( )
- hget ( )
- lpush ( )
- incr ( )
- sadd ( )
- hdel ( )
- lrange ( )
- setex ( )
- keys ( )
- auth ( )
- hgetAll ( )
- flushAll ( )
- pipelined ( )
- srem ( )
- hmset ( )
- smembers ( )
- scard ( )
- setnx ( )
- connect ( )
- decr ( )
- eval ( )
- multi ( )
- sort ( )
- sismember ( )
- zrangeByScore ( )
- zadd ( )
- hvals ( )
- lpop ( )
- zrange ( )
- rpop ( )
- incrBy ( )
- hmget ( )
- hkeys ( )
- llen ( )
- watch ( )
- brpop ( )
- zrem ( )
- ttl ( )
- linsert ( )
- mget ( )
- configSet ( )
- hexists ( )
- spop ( )
- decrBy ( )
- sdiffstore ( )
- setrange ( )
- zscore ( )
- ltrim ( )
- hlen ( )
- scan ( )
- getSet ( )
- zrevrangeByScoreWithScores ( )
- append ( )
- sdiff ( )
- zcard ( )
- lindex ( )
- subscribe ( )
- rename ( )
- sinter ( )
- lrem ( )
- clientSetname ( )
- persist ( )
- sendCommand ( )
- zrangeWithScores ( )
- zscan ( )
- psubscribe ( )
- zrevrank ( )
- mset ( )
- zrevrangeByScore ( )
- slowlogGet ( )
- flushDB ( )
- sunionstore ( )
- strlen ( )
- disconnect ( )
Related Classes
- java.util.Arrays
- java.util.Collections
- java.util.Date
- java.util.concurrent.TimeUnit
- org.junit.Before
- java.util.UUID
- java.net.URI
- java.util.Map.Entry
- org.junit.Assert
- java.util.Optional
- javax.servlet.http.HttpServletRequest
- com.google.gson.Gson
- org.springframework.context.annotation.Bean
- org.json.JSONObject
- org.apache.commons.lang3.StringUtils
- org.apache.commons.io.IOUtils
- com.google.common.collect.Lists
- org.apache.commons.lang.StringUtils
- org.springframework.util.StringUtils
- com.alibaba.fastjson.JSON
- javax.ws.rs.core.Response
- com.alibaba.fastjson.JSONObject
- redis.clients.jedis.JedisPool
- redis.clients.jedis.JedisPoolConfig
- org.apache.commons.pool2.impl.GenericObjectPoolConfig
Java Code Examples for redis.clients.jedis.Jedis#rename()
The following examples show how to use
redis.clients.jedis.Jedis#rename() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JedisUtil.java From scaffold-cloud with MIT License | 5 votes |
/** * 重命名 * * @param oldkey * @param newkey */ public static void rename(String oldkey, String newkey) { Jedis jedis = null; try { jedis = getResource(); jedis.rename(oldkey, newkey); } finally { close(jedis); } }
Example 2
Source File: DefaultRedis.java From craft-atom with MIT License | 4 votes |
private String rename0(Jedis j, String key, String newkey) { return j.rename(key, newkey); }
Example 3
Source File: JedisUtil.java From Project with Apache License 2.0 | 3 votes |
/** * 更改key * * @param oldkey * @param newkey * @return 状态码 */ public String rename(byte[] oldkey, byte[] newkey) { Jedis jedis = getJedis(); String status = jedis.rename(oldkey, newkey); jedis.close(); return status; }
Example 4
Source File: JedisUtil.java From BigData with GNU General Public License v3.0 | 3 votes |
/** * 更改key * * @param String * oldkey * @param String * newkey * @return 状态码 * */ public String rename(byte[] oldkey, byte[] newkey) { Jedis jedis = getJedis(); String status = jedis.rename(oldkey, newkey); returnJedis(jedis); return status; }