Skip to content

Commit

Permalink
use JedisPoolConfig instead of apache GenericObjectPool$Config
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenet authored and mmcgrana committed May 8, 2011
1 parent 1467876 commit b179fc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/clj_redis/client.clj
@@ -1,7 +1,6 @@
(ns clj-redis.client
(:import java.net.URI)
(:import (redis.clients.jedis Jedis JedisPool JedisPubSub))
(:import org.apache.commons.pool.impl.GenericObjectPool)
(:import (redis.clients.jedis Jedis JedisPool JedisPoolConfig JedisPubSub))
(:require [clojure.string :as str])
(:refer-clojure :exclude [get set keys]))

Expand All @@ -15,7 +14,7 @@
port (.getPort uri)
uinfo (.getUserInfo uri)
pass (and uinfo (last (str/split uinfo #":")))
config (org.apache.commons.pool.impl.GenericObjectPool$Config.)
config (JedisPoolConfig.)
pool (JedisPool. config host port tout pass)]
pool))

Expand Down

0 comments on commit b179fc3

Please sign in to comment.