com.baidu.driver4j.bdrp.client
接口 BdrpClient

所有超级接口:
redis.clients.jedis.AdvancedBinaryJedisCommands, redis.clients.jedis.AdvancedJedisCommands, redis.clients.jedis.BasicCommands, redis.clients.jedis.BinaryJedisCommands, redis.clients.jedis.BinaryScriptingCommands, redis.clients.jedis.ClusterCommands, redis.clients.jedis.JedisCommands, redis.clients.jedis.MultiKeyBinaryCommands, redis.clients.jedis.MultiKeyCommands, redis.clients.jedis.ScriptingCommands

public interface BdrpClient
extends redis.clients.jedis.BasicCommands, redis.clients.jedis.BinaryJedisCommands, redis.clients.jedis.MultiKeyBinaryCommands, redis.clients.jedis.AdvancedBinaryJedisCommands, redis.clients.jedis.BinaryScriptingCommands, redis.clients.jedis.JedisCommands, redis.clients.jedis.MultiKeyCommands, redis.clients.jedis.AdvancedJedisCommands, redis.clients.jedis.ScriptingCommands, redis.clients.jedis.ClusterCommands

BDRP客户端接口,主要是把Jedis所实现的接口都继承了

作者:
dingxuefeng

方法摘要
 redis.clients.jedis.Jedis getJedisFromPool()
          从连接池中取出一个Jedis实例。
 void returnJedisToPool(redis.clients.jedis.Jedis jedis)
          将Jedis放回池中,需要在方法中判断连接是否可用 这里只放了一个return,避免使用者忘记区分是否出问题
 
从接口 redis.clients.jedis.BasicCommands 继承的方法
auth, bgrewriteaof, bgsave, configResetStat, dbSize, debug, flushAll, flushDB, getDB, info, info, lastsave, ping, quit, save, select, shutdown, slaveof, slaveofNoOne, waitReplicas
 
从接口 redis.clients.jedis.BinaryJedisCommands 继承的方法
append, bitcount, bitcount, blpop, brpop, decr, decrBy, del, echo, exists, expire, expireAt, get, getbit, getrange, getSet, hdel, hexists, hget, hgetAll, hincrBy, hkeys, hlen, hmget, hmset, hset, hsetnx, hvals, incr, incrBy, lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrem, lset, ltrim, move, persist, rpop, rpush, rpushx, sadd, scard, set, setbit, setbit, setex, setnx, setrange, sismember, smembers, sort, sort, spop, srandmember, srem, strlen, substr, ttl, type, zadd, zadd, zcard, zcount, zcount, zincrby, zrange, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeWithScores, zrank, zrem, zremrangeByRank, zremrangeByScore, zremrangeByScore, zrevrange, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeWithScores, zrevrank, zscore
 
从接口 redis.clients.jedis.MultiKeyBinaryCommands 继承的方法
bitop, blpop, blpop, brpop, brpop, brpoplpush, del, keys, mget, mset, msetnx, psubscribe, publish, randomBinaryKey, rename, renamenx, rpoplpush, sdiff, sdiffstore, sinter, sinterstore, smove, sort, sort, subscribe, sunion, sunionstore, unwatch, watch, zinterstore, zinterstore, zunionstore, zunionstore
 
从接口 redis.clients.jedis.AdvancedBinaryJedisCommands 继承的方法
configGet, configSet, objectEncoding, objectIdletime, objectRefcount, slowlogGetBinary, slowlogGetBinary, slowlogLen, slowlogReset
 
从接口 redis.clients.jedis.BinaryScriptingCommands 继承的方法
eval, eval, eval, eval, evalsha, evalsha, evalsha, scriptExists, scriptFlush, scriptKill, scriptLoad
 
从接口 redis.clients.jedis.JedisCommands 继承的方法
append, bitcount, bitcount, blpop, brpop, decr, decrBy, del, echo, exists, expire, expireAt, get, getbit, getrange, getSet, hdel, hexists, hget, hgetAll, hincrBy, hkeys, hlen, hmget, hmset, hscan, hset, hsetnx, hvals, incr, incrBy, lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrem, lset, ltrim, move, persist, rpop, rpush, rpushx, sadd, scard, set, setbit, setbit, setex, setnx, setrange, sismember, smembers, sort, sort, spop, srandmember, srem, sscan, strlen, substr, ttl, type, zadd, zadd, zcard, zcount, zcount, zincrby, zrange, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeWithScores, zrank, zrem, zremrangeByRank, zremrangeByScore, zremrangeByScore, zrevrange, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeWithScores, zrevrank, zscan, zscore
 
从接口 redis.clients.jedis.MultiKeyCommands 继承的方法
bitop, blpop, blpop, brpop, brpop, brpoplpush, del, keys, mget, mset, msetnx, psubscribe, publish, randomKey, rename, renamenx, rpoplpush, scan, sdiff, sdiffstore, sinter, sinterstore, smove, sort, sort, subscribe, sunion, sunionstore, unwatch, watch, zinterstore, zinterstore, zunionstore, zunionstore
 
从接口 redis.clients.jedis.AdvancedJedisCommands 继承的方法
configGet, configSet, objectEncoding, objectIdletime, objectRefcount, slowlogGet, slowlogGet, slowlogLen, slowlogReset
 
从接口 redis.clients.jedis.ScriptingCommands 继承的方法
eval, eval, eval, evalsha, evalsha, evalsha, scriptExists, scriptExists, scriptLoad
 
从接口 redis.clients.jedis.ClusterCommands 继承的方法
clusterAddSlots, clusterDelSlots, clusterGetKeysInSlot, clusterInfo, clusterMeet, clusterNodes, clusterSetSlotImporting, clusterSetSlotMigrating, clusterSetSlotNode
 

方法详细信息

getJedisFromPool

redis.clients.jedis.Jedis getJedisFromPool()
从连接池中取出一个Jedis实例。 切记用完要放回去!!!

返回:
池中的实例

returnJedisToPool

void returnJedisToPool(redis.clients.jedis.Jedis jedis)
将Jedis放回池中,需要在方法中判断连接是否可用 这里只放了一个return,避免使用者忘记区分是否出问题

参数:
jedis - 待归还的Jedis


Copyright © 2016. All rights reserved.