Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 348f846

Browse files
committed
docs: add Java and Python files
添加 Java 和 Python 语言文件
1 parent ebc42d9 commit 348f846

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

‎langs/Redis.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import redis.clients.jedis.Jedis;
2+
3+
public class Redis {
4+
public static void main(String[] args) {
5+
Jedis client = new Jedis();
6+
client.set("author", "yanglbme");
7+
client.set("wechat_id", "YLB0109");
8+
client.set("link", "https://github.com/yanglbme");
9+
client.set("email", "contact@yanglibin.info");
10+
System.out.println("Hello, Redis");
11+
}
12+
}

‎langs/redis-py.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from redis import Redis
2+
3+
client = Redis(decode_responses=True)
4+
5+
client.set('author', 'yanglbme')
6+
client.set('wechat_id', 'YLB0109')
7+
client.set('link', 'https://github.com/yanglbme')
8+
client.set('email', 'contact@yanglibin.info')
9+
10+
print('Hello, Redis')
11+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /