You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/develop/java/index-java.mdx
+48-48Lines changed: 48 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,58 +31,58 @@ The blog post “[Jedis vs. Lettuce: An Exploration](https://redislabs.com/blog/
31
31
32
32
### Step 1. Add dependencies Jedis dependency to your Maven (or Gradle) project file:
33
33
34
-
```xml
34
+
```xml
35
35
<dependency>
36
36
<groupId>redis.clients</groupId>
37
37
<artifactId>jedis</artifactId>
38
38
<version>3.4.0</version>
39
39
</dependency>
40
-
```
40
+
```
41
41
42
42
### Step 2. Import the required classes
43
43
44
-
```java
44
+
```java
45
45
importredis.clients.jedis.*;
46
-
```
46
+
```
47
47
48
48
49
49
### Step 3. Create a Connection Pool
50
50
51
-
Once you have added the Jedis library to your project and imported the necessary classes you can create a connection pool.
51
+
Once you have added the Jedis library to your project and imported the necessary classes you can create a connection pool.
52
52
53
-
You can find more information about Jedis connection pool in the [Jedis Wiki](https://github.com/redis/jedis/wiki/Getting-started#basic-usage-example). The connection pool is based on the [Apache Common Pool 2.0 library](http://commons.apache.org/proper/commons-pool/apidocs/org/apache/commons/pool2/impl/GenericObjectPoolConfig.html).
53
+
You can find more information about Jedis connection pool in the [Jedis Wiki](https://github.com/redis/jedis/wiki/Getting-started#basic-usage-example). The connection pool is based on the [Apache Common Pool 2.0 library](http://commons.apache.org/proper/commons-pool/apidocs/org/apache/commons/pool2/impl/GenericObjectPoolConfig.html).
54
54
55
-
```java
56
-
JedisPool jedisPool = new JedisPool(new JedisPoolConfig(), "localhost", 6379);
Find more information about Java & Redis connections in the "[Redis Connect](https://github.com/redis-developer/redis-connect/tree/master/java/jedis)".
88
88
@@ -93,42 +93,42 @@ Find more information about Java & Redis connections in the "[Redis Connect](htt
93
93
94
94
### Step 1. Add dependencies Jedis dependency to your Maven (or Gradle) project file:
Find more information about Java & Redis connections in the "[Redis Connect](https://github.com/redis-developer/redis-connect/tree/master/java/lettuce)".
0 commit comments