K - Key type.V - Value type.public interface RedisCommands<K,V> extends RedisHashCommands<K,V>, RedisKeyCommands<K,V>, RedisStringCommands<K,V>, RedisListCommands<K,V>, RedisSetCommands<K,V>, RedisSortedSetCommands<K,V>, RedisScriptingCommands<K,V>, RedisServerCommands<K,V>, RedisHLLCommands<K,V>, BaseRedisCommands<K,V>, RedisClusterCommands<K,V>, RedisTransactionalCommands<K,V>, RedisGeoCommands<K,V>, RedisConnection<K,V>
| Modifier and Type | Method and Description |
|---|---|
String |
auth(String password)
Authenticate to the server.
|
StatefulRedisConnection<K,V> |
getStatefulConnection() |
String |
select(int db)
Change the selected database for the current Commands.
|
void |
setTimeout(long timeout,
TimeUnit unit)
Set the default timeout for operations.
|
String |
swapdb(int db1,
int db2)
Swap two Redis databases, so that immediately all the clients connected to a given DB will see the data of the other DB,
and the other way around
|
asking, close, clusterAddSlots, clusterBumpepoch, clusterCountFailureReports, clusterCountKeysInSlot, clusterDelSlots, clusterFailover, clusterFlushslots, clusterForget, clusterGetKeysInSlot, clusterInfo, clusterKeyslot, clusterMeet, clusterMyId, clusterNodes, clusterReplicate, clusterReset, clusterSaveconfig, clusterSetConfigEpoch, clusterSetSlotImporting, clusterSetSlotMigrating, clusterSetSlotNode, clusterSetSlotStable, clusterSlaves, clusterSlots, readOnly, readWritehdel, hexists, hget, hgetall, hgetall, hincrby, hincrbyfloat, hkeys, hkeys, hlen, hmget, hmget, hmset, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hset, hsetnx, hstrlen, hvals, hvalsdel, dump, exists, expire, expireat, expireat, keys, keys, migrate, migrate, move, objectEncoding, objectIdletime, objectRefcount, persist, pexpire, pexpireat, pexpireat, pttl, randomkey, rename, renamenx, restore, scan, scan, scan, scan, scan, scan, scan, scan, sort, sort, sort, sort, sortStore, touch, ttl, type, unlinkappend, bitcount, bitcount, bitfield, bitopAnd, bitopNot, bitopOr, bitopXor, bitpos, bitpos, bitpos, decr, decrby, get, getbit, getrange, getset, incr, incrby, incrbyfloat, mget, mget, mset, msetnx, psetex, set, set, setbit, setex, setnx, setrange, strlenblpop, brpop, brpoplpush, lindex, linsert, llen, lpop, lpush, lpushx, lpushx, lrange, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx, rpushxsadd, scard, sdiff, sdiff, sdiffstore, sinter, sinter, sinterstore, sismember, smembers, smembers, smove, spop, spop, srandmember, srandmember, srandmember, srem, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sunion, sunion, sunionstorezadd, zadd, zadd, zadd, zadd, zadd, zaddincr, zaddincr, zcard, zcount, zcount, zcount, zincrby, zinterstore, zinterstore, zlexcount, zlexcount, zrange, zrange, zrangebylex, zrangebylex, zrangebylex, zrangebylex, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangeWithScores, zrangeWithScores, zrank, zrem, zremrangebylex, zremrangebylex, zremrangebyrank, zremrangebyscore, zremrangebyscore, zremrangebyscore, zrevrange, zrevrange, zrevrangebylex, zrevrangebylex, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangeWithScores, zrevrangeWithScores, zrevrank, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscore, zunionstore, zunionstoredigest, eval, eval, evalsha, evalsha, scriptExists, scriptFlush, scriptKill, scriptLoadpfadd, pfcount, pfmergegeoadd, geoadd, geodist, geohash, geopos, georadius, georadius, georadius, georadiusbymember, georadiusbymember, georadiusbymemberdispatch, dispatch, echo, isOpen, ping, publish, pubsubChannels, pubsubChannels, pubsubNumpat, pubsubNumsub, quit, reset, role, waitForReplicationvoid setTimeout(long timeout,
TimeUnit unit)
setTimeout in interface RedisClusterCommands<K,V>setTimeout in interface RedisClusterConnection<K,V>setTimeout in interface RedisConnection<K,V>timeout - the timeout valueunit - the unit of the timeout valueString auth(String password)
auth in interface RedisClusterCommands<K,V>auth in interface RedisClusterConnection<K,V>auth in interface RedisConnection<K,V>password - the passwordString select(int db)
select in interface RedisConnection<K,V>db - the database numberString swapdb(int db1, int db2)
db1 - the first database numberdb2 - the second database numberStatefulRedisConnection<K,V> getStatefulConnection()
getStatefulConnection in interface RedisConnection<K,V>Copyright © 2018 lettuce.io. All rights reserved.