Package org.gorpipe.spark.platform
Interface RedisPool
- All Known Implementing Classes:
JedisWrapperPool
public interface RedisPool
Redis connection pool.
Pool interface that uses JedisCommands - used to make unit testing easier.
-
Method Summary
Modifier and Type Method Description voiddestroy()Destroy poolRedisgetResource()Get resource from pool.intinUse()
-
Method Details
-
getResource
Redis getResource()Get resource from pool.- Returns:
- Redis connection
-
destroy
void destroy()Destroy pool -
inUse
int inUse()- Returns:
- Number of connections in use
-