Class RedisDb

java.lang.Object
io.inversion.Rule<T>
io.inversion.Db<RedisDb>
io.inversion.redis.RedisDb
All Implemented Interfaces:
Comparable<RedisDb>

public class RedisDb extends io.inversion.Db<RedisDb>
  • Field Details

    • log

      protected final org.slf4j.Logger log
    • jedis

      protected transient redis.clients.jedis.JedisPool jedis
    • host

      protected String host
    • port

      protected int port
    • poolMin

      protected int poolMin
    • poolMax

      protected int poolMax
    • testOnBorrow

      protected boolean testOnBorrow
    • testOnReturn

      protected boolean testOnReturn
    • testWhileIdle

      protected boolean testWhileIdle
    • minEvictableIdleTimeMillis

      protected int minEvictableIdleTimeMillis
    • timeBetweenEvictionRunsMillis

      protected int timeBetweenEvictionRunsMillis
    • numTestsPerEvictionRun

      protected int numTestsPerEvictionRun
    • blockWhenExhausted

      protected boolean blockWhenExhausted
    • nocacheParam

      protected String nocacheParam
    • readSocketTimeout

      protected int readSocketTimeout
    • ttl

      protected int ttl
  • Constructor Details

    • RedisDb

      public RedisDb()
  • Method Details

    • doSelect

      public io.inversion.Results doSelect(io.inversion.Collection table, List<io.inversion.rql.Term> queryTerms) throws io.inversion.ApiException
      Overrides:
      doSelect in class io.inversion.Db<RedisDb>
      Throws:
      io.inversion.ApiException
    • doUpsert

      public List<String> doUpsert(io.inversion.Collection table, List<Map<String,Object>> rows) throws io.inversion.ApiException
      Overrides:
      doUpsert in class io.inversion.Db<RedisDb>
      Throws:
      io.inversion.ApiException
    • doDelete

      public void doDelete(io.inversion.Collection table, List<Map<String,Object>> indexValues) throws io.inversion.ApiException
      Overrides:
      doDelete in class io.inversion.Db<RedisDb>
      Throws:
      io.inversion.ApiException
    • getRedisClient

      protected redis.clients.jedis.Jedis getRedisClient()
    • getHost

      public String getHost()
    • withHost

      public RedisDb withHost(String host)
    • getPort

      public int getPort()
    • withPort

      public RedisDb withPort(int port)
    • getPoolMin

      public int getPoolMin()
    • withPoolMin

      public RedisDb withPoolMin(int poolMin)
    • getPoolMax

      public int getPoolMax()
    • withPoolMax

      public RedisDb withPoolMax(int poolMax)
    • isTestOnBorrow

      public boolean isTestOnBorrow()
    • withTestOnBorrow

      public RedisDb withTestOnBorrow(boolean testOnBorrow)
    • isTestOnReturn

      public boolean isTestOnReturn()
    • withTestOnReturn

      public RedisDb withTestOnReturn(boolean testOnReturn)
    • isTestWhileIdle

      public boolean isTestWhileIdle()
    • withTestWhileIdle

      public RedisDb withTestWhileIdle(boolean testWhileIdle)
    • getMinEvictableIdleTimeMillis

      public int getMinEvictableIdleTimeMillis()
    • withMinEvictableIdleTimeMillis

      public RedisDb withMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis)
    • getTimeBetweenEvictionRunsMillis

      public int getTimeBetweenEvictionRunsMillis()
    • withTimeBetweenEvictionRunsMillis

      public RedisDb withTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis)
    • getNumTestsPerEvictionRun

      public int getNumTestsPerEvictionRun()
    • withNumTestsPerEvictionRun

      public RedisDb withNumTestsPerEvictionRun(int numTestsPerEvictionRun)
    • isBlockWhenExhausted

      public boolean isBlockWhenExhausted()
    • withBlockWhenExhausted

      public RedisDb withBlockWhenExhausted(boolean blockWhenExhausted)
    • getNocacheParam

      public String getNocacheParam()
    • withNocacheParam

      public RedisDb withNocacheParam(String nocacheParam)
    • getReadSocketTimeout

      public int getReadSocketTimeout()
    • withReadSocketTimeout

      public RedisDb withReadSocketTimeout(int readSocketTimeout)
    • getTtl

      public int getTtl()
    • withTtl

      public RedisDb withTtl(int ttl)