Skip to main content

Parameter Configuration

ParameterAccepted values / typeDefaultDescription and constraints
serverhost[:port][;host[:port]...]UnsetRedis server address. Uses 6379 as default port if not specified. Format: ip or ip:port. Cluster mode: ip:port;ip:port or ip;ip;ip
user / usernameStringUnsetUsername user takes precedence over username.
passwordStringUnsetPassword
databaseInteger database index0Default database Redis Cluster supports database 0 only.
connectTimeoutInteger (milliseconds)5000Connection timeout (milliseconds)
socketTimeoutInteger (seconds)10Socket timeout (seconds)
timeZoneTime-zone ID or offset, e.g. UTC, +08:00UTCDriver time zone for time type conversion, for example +08:00.
clientNameStringJedis-JDBC-ClientClient name
uncheckNumKeystrue / falsefalseWhether to disable key count checking. When set to true, the driver will not check the number of keys required by the executed command, such as numfields in HEXPIRE/HTTL, and numkeys in ZMPOP.
separatorCharOne character, e.g. newline or semicolon'\n'Command separator. Quote values containing the separator or bind them with PreparedStatement.
interceptorFully qualified class nameUnsetCommand interceptor for intercepting JedisCluster or Jedis object command calls. Must implement java.lang.reflect.InvocationHandler
customJedisFully qualified class nameUnsetCustom creation of JedisCluster or Jedis objects outside the driver. Must implement net.hasor.dbvisitor.adapter.redis.CustomJedis
maxTotalInteger8(Cluster) Value of the pool's "maxTotal" configuration property.
maxIdleInteger8(Cluster) Value of the pool's "maxIdle" configuration property.
minIdleInteger0(Cluster) Value of the pool's "minIdle" configuration property.
testWhileIdletrue / falsefalse(Cluster) Value of the pool's "testWhileIdle" configuration property. Requires minIdle to be supplied as well.
maxAttemptsInteger5(Cluster) Maximum number of attempts for executing commands.
adapterNamejedisFrom JDBC URLAdapter identifier supplied by the JDBC URL.