Skip to content

Commit 9478580

Browse files
committed
s
1 parent 9e1940b commit 9478580

File tree

177 files changed

+39199
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+39199
-0
lines changed

jedis-master/.github/CONTRIBUTING.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# How to use Jedis Github Issue
2+
3+
* Github issues SHOULD ONLY BE USED to report bugs, and for DETAILED feature requests. Everything else belongs to the Jedis Google Group.
4+
5+
Jedis Google Group address:
6+
7+
https://groups.google.com/forum/?fromgroups#!forum/jedis_redis
8+
9+
Please post General questions to Google Group. It can be closed without answer when posted to Github issue.
10+
11+
# Some rules of Jedis source code
12+
13+
## Code Convention
14+
15+
* Jedis uses ```HBase Formatter``` introduced by [HBASE-5961](https://issues.apache.org/jira/browse/HBASE-5961)
16+
* You can import code style file (located to hbase-formatter.xml) to Eclipse, IntelliJ
17+
* line break by column count seems not working with IntelliJ
18+
* You can run ```make format``` anytime to reformat without IDEs
19+
20+
## Adding commands
21+
22+
* Jedis uses many interfaces to structure commands
23+
* planned to write documentation about it, contribution is more welcome!
24+
* We need to add commands to all interfaces which have responsibility to expose
25+
* ex) We need to add ping() command to BasicCommands, and provide implementation to all of classes which implemented BasicCommands
26+
27+
## type <-> byte array conversion
28+
29+
* string <-> byte array : use SafeEncoder.encode()
30+
* Caution: use String.toBytes() directly will break GBK support!
31+
* boolean, int, long, double -> byte array : use Protocol.toByteArray()
32+
33+
# How to contribute by Pull Request
34+
35+
1. Fork Jedis on github (http://help.github.com/fork-a-repo/)
36+
2. Create a topic branch (git checkout -b my_branch)
37+
3. Push to your branch (git push origin my_branch)
38+
4. Post a pull request on github (http://help.github.com/send-pull-requests/)
39+
40+
I recommend you to create branch with meaningful name, not modifying master branch directly.
41+
42+
Please add unit tests in order to prove your modification works smoothly. And please make sure your modification passes all unit tests.
43+
44+
# Jedis Test Environment
45+
46+
Jedis unit tests run with latest [```Redis unstable branch```](https://github.com/antirez/redis).
47+
Please let them prepared and installed.
48+
49+
Jedis unit tests use many Redis instances, so we use ```Makefile``` to prepare environment.
50+
51+
You can start test with ```make test```.
52+
You can set up test environments by ```make start```, and tear down environments by ```make stop```.
53+
54+
If one or some of unit tests in current master branch of Jedis fails with Redis unstable branch, please post it to Github issue, and go ahead with other unit tests at your work.
55+
56+
Thanks!

jedis-master/.github/ISSUE_TEMPLATE

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
### Expected behavior
2+
3+
Write here what you're expecting ...
4+
5+
### Actual behavior
6+
7+
Write here what happens instead ...
8+
9+
### Steps to reproduce:
10+
11+
Please create a reproducible case of your problem. Make sure
12+
that case repeats consistently and it's not random
13+
1.
14+
2.
15+
3.
16+
17+
### Redis / Jedis Configuration
18+
19+
#### Jedis version:
20+
21+
#### Redis version:
22+
23+
#### Java version:
24+
25+
26+
27+

jedis-master/.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.classpath
2+
*.iml
3+
*.ipr
4+
*.iws
5+
.project
6+
.settings/
7+
.gradle/
8+
target/
9+
build/
10+
bin/
11+
tags
12+
.idea
13+
*.aof
14+
*.rdb

jedis-master/.travis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
sudo: required
2+
language: java
3+
jdk:
4+
- openjdk7
5+
- oraclejdk7
6+
- oraclejdk8
7+
before_install:
8+
- wget -O stunnel.tar.gz ftp://ftp.stunnel.org/stunnel/archive/5.x/stunnel-5.29.tar.gz
9+
- tar -xvzf stunnel.tar.gz
10+
- cd ./stunnel-5.29 && ./configure && make && sudo make install && cd ..
11+
install:
12+
- make travis-install
13+
script: TEST="\!ModuleTest" make test
14+
cache:
15+
directories:
16+
- $HOME/.m2
17+
addons:
18+
hostname: jedis

jedis-master/LICENSE.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2010 Jonathan Leibiusky
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)