Skip to main content

Parameters

Hint

This article is generated by AI translation.

JDBC URL format
jdbc:dbvisitor:jedis://server?database=0&param1=value1&param2=value2
NameTypeDefaultDescription
serverstringRedis server address. If port omitted, default 6379. Format: ip or ip:port; cluster: ip:port;ip:port or ip;ip;ip.
usernamestringUsername
passwordstringPassword
databaseint0Default database
connectTimeoutint5000Connection timeout (ms)
socketTimeoutint10Socket timeout (seconds)
timeZonestringLocal time zone the driver uses for time values.
clientNamestringJedis-JDBC-ClientClient name
uncheckNumKeysbooleanfalseDisable key-count checks. If true, driver skips numkeys checks (e.g., HEXPIRE, HTTL, ZMPOP).
separatorCharchar'\n'Command separator. Can set to \n or ;. Driver splits multiple commands by this char.
interceptorclassCommand interceptor; implements java.lang.reflect.InvocationHandler for Jedis/JedisCluster.
customJedisclassCustomize Jedis/JedisCluster creation; implement net.hasor.dbvisitor.adapter.redis.CustomJedis.
maxTotalint8(Cluster) pool maxTotal.
maxIdleint8(Cluster) pool maxIdle.
minIdleint0(Cluster) pool minIdle.
testWhileIdlebooleanfalse(Cluster) pool testWhileIdle.
maxAttemptsint5(Cluster) max command attempts.
  • uncheckNumKeys affects commands:
    • HEXPIRE, HEXPIREAT, HEXPIRETIME, HPEXPIRE, HPEXPIREAT, HPEXPIRETIME, HPERSIST, HTTL, HPTTL
    • ZMPOP, BZMPOP, ZDIFF, ZDIFFSTORE, ZINTER, ZINTERCARD, ZINTERSTORE, ZUNION, ZUNIONSTORE
    • LMPOP, BLMPOP, SINTERCARD
  • When separatorChar is ;:
    • Content containing ; must be quoted, otherwise parsing will fail.