Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
Signed-off-by: munishchouhan <[email protected]>
  • Loading branch information
munishchouhan committed Oct 24, 2024
1 parent 452c391 commit 3047795
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main/groovy/io/seqera/wave/redis/RedisFactory.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@

package io.seqera.wave.redis

import java.util.regex.Pattern
import javax.annotation.Nullable

import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j
import io.micronaut.context.annotation.Factory
import io.micronaut.context.annotation.Requires
import io.micronaut.context.annotation.Value
import jakarta.inject.Singleton
import redis.clients.jedis.DefaultJedisClientConfig
import redis.clients.jedis.HostAndPort
import redis.clients.jedis.JedisPool
import redis.clients.jedis.JedisPoolConfig
import redis.clients.jedis.exceptions.InvalidURIException
Expand All @@ -45,10 +41,6 @@ import redis.clients.jedis.util.JedisURIHelper
@CompileStatic
class RedisFactory {

final static private String ADDRESS_REGEX = '(rediss?://)?(?<host>[^:]+)(:(?<port>\\d+))?'

final static private Pattern ADDRESS_PATTERN = Pattern.compile(ADDRESS_REGEX)

@Singleton
JedisPool createRedisPool(
@Value('${redis.uri}') String uriString,
Expand Down

0 comments on commit 3047795

Please sign in to comment.