public class CacheConnection extends Connection
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheConnection.Builder |
protocol, server, version| Constructor and Description |
|---|
CacheConnection(JedisSocketFactory socketFactory,
JedisClientConfig clientConfig,
Cache cache) |
| Modifier and Type | Method and Description |
|---|---|
static CacheConnection.Builder |
builder() |
static CacheConnection.Builder |
builder(Cache cache) |
void |
disconnect()
Close the socket and disconnect the server.
|
<T> T |
executeCommand(CommandObject<T> commandObject) |
Cache |
getCache() |
protected void |
initializeFromClientConfig(JedisClientConfig config) |
protected java.lang.Object |
protocolRead(RedisInputStream inputStream) |
protected void |
protocolReadPushes(RedisInputStream inputStream) |
close, connect, encodeToBytes, executeCommand, executeCommand, flush, forceDisconnect, getAuthXManager, getBinaryBulkReply, getBinaryMultiBulkReply, getBulkReply, getIntegerMultiBulkReply, getIntegerReply, getMany, getMultiBulkReply, getObjectMultiBulkReply, getOne, getRedisProtocol, getSoTimeout, getStatusCodeReply, getUnflushedObject, getUnflushedObjectMultiBulkReply, hello, initializeFromClientConfig, isBroken, isConnected, isTokenBasedAuthenticationEnabled, ping, readProtocolWithCheckingBroken, readPushesWithCheckingBroken, reAuthenticate, rollbackTimeout, select, sendCommand, sendCommand, sendCommand, sendCommand, sendCommand, setBroken, setCredentials, setHandlingPool, setSoTimeout, setTimeoutInfinite, toIdentityString, toStringpublic CacheConnection(JedisSocketFactory socketFactory, JedisClientConfig clientConfig, Cache cache)
public static CacheConnection.Builder builder(Cache cache)
@VisibleForTesting public static CacheConnection.Builder builder()
protected void initializeFromClientConfig(JedisClientConfig config)
initializeFromClientConfig in class Connectionprotected java.lang.Object protocolRead(RedisInputStream inputStream)
protocolRead in class Connectionprotected void protocolReadPushes(RedisInputStream inputStream)
protocolReadPushes in class Connectionpublic void disconnect()
Connectiondisconnect in class Connectionpublic <T> T executeCommand(CommandObject<T> commandObject)
executeCommand in class Connectionpublic Cache getCache()
Copyright © 2025. All rights reserved.