diff --git a/.github/workflows/compress.yml b/.github/workflows/compress.yml new file mode 100644 index 0000000..37e3cc8 --- /dev/null +++ b/.github/workflows/compress.yml @@ -0,0 +1,35 @@ +name: Compress + +on: + push: + branches: [main] + paths: + - "**.jpg" + - "**.jpeg" + - "**.png" + - "**.webp" + +jobs: + compress: + runs-on: ubuntu-latest + if: github.repository == 'yanglbme/redis-multi-programming-language-practice' + steps: + - name: Checkout Branch + uses: actions/checkout@v2 + + - name: Compress Images + uses: calibreapp/image-actions@master + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} + compressOnly: true + + - name: Commit Files + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -m "[Automated] Optimize images" -a + + - name: Push Changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml deleted file mode 100644 index b754863..0000000 --- a/.github/workflows/gradle.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Java CI - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with gradle - run: | - gradle wrapper - chmod +x gradlew - ./gradlew build diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml deleted file mode 100644 index 375ea4b..0000000 --- a/.github/workflows/pytest.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: pytest - -on: - push: - paths: - - 'python/src/test/*.py' - pull_request: - paths: - - 'python/src/test/*.py' - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - max-parallel: 4 - matrix: - python-version: [3.6, 3.7] - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - sudo apt-get install redis - python -m pip install --upgrade pip - pip install redis - - name: Test with pytest - run: | - pip install pytest - pytest diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..544ac55 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,26 @@ +name: Sync + +on: + push: + branches: [main] + +jobs: + sync: + runs-on: ubuntu-latest + if: github.repository == 'yanglbme/redis-multi-programming-language-practice' + steps: + - name: Sync to gitee.com + uses: wearerequired/git-mirror-action@master + env: + SSH_PRIVATE_KEY: ${{ secrets.RSA_PRIVATE_KEY }} + with: + source-repo: git@github.com:yanglbme/redis-multi-programming-language-practice.git + destination-repo: git@gitee.com:yanglbme/redis-multi-programming-language-practice.git + + # - name: Build Gitee Pages + # uses: yanglbme/gitee-pages-action@main + # with: + # gitee-username: yanglbme + # gitee-password: ${{ secrets.GITEE_PASSWORD }} + # gitee-repo: yanglbme/redis-multi-programming-language-practice + # branch: main diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index f333d1e..c11c9f2 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,15 @@ # Redis 底层原理分析与多语言应用实践[©](https://github.com/yanglbme) -[](https://github.com/yanglbme/redis-multi-programming-language-practice/actions) [](http://makeapullrequest.com) [](https://doocs.github.io/#/?id=how-to-join) [](https://gitter.im/doocs) -本项目主要讲解 Redis 的底层原理以及在各种场景下的应用。所有演示代码均基于 Redis 最新稳定版本 `v5.0`,不同操作系统下 Redis 的安装方式请自行搜索,就不在此赘述了。 +本项目主要讲解 Redis 的底层原理以及在各种场景下的应用。所有演示代码均基于 Redis 最新稳定版本 `v6`,不同操作系统下 Redis 的安装方式请自行搜索,就不在此赘述了。 另,本项目针对不同编程语言,使用了其对应的 Redis 库,方便程序对 Redis 进行各项操作: - Python: 使用 pip 安装 redis 库,[`pip install redis`](https://pypi.org/project/redis/) -- Java: 使用 gradle 导入 jedis 库,[`compile group: 'redis.clients', name: 'jedis', version: '3.1.0'`](https://mvnrepository.com/artifact/redis.clients/jedis/3.1.0) +- Java: 使用 gradle 导入 jedis 库,[`implementation group: 'redis.clients', name: 'jedis', version: '3.7.0'`](https://mvnrepository.com/artifact/redis.clients/jedis/3.7.0) 欢迎补充更多的实际应用场景,让项目内容更加完善。如果你认为演示代码有待改进,可以在 Issues 区反馈,当然,你也可以直接发起 Pull Request。 @@ -43,8 +42,3 @@ ### [HyperLogLog](/docs/redis-hyperLogLog-introduction.md) ### [Bitmap 位图](/docs/redis-bitmap-introduction.md) - -## 参考资料 - -- Redis 深度历险[2018] -- Redis 使用手册[2019] diff --git a/docs/images/doocs.png b/images/doocs.png similarity index 100% rename from docs/images/doocs.png rename to images/doocs.png diff --git a/docs/images/favicon-16x16.png b/images/favicon-16x16.png similarity index 100% rename from docs/images/favicon-16x16.png rename to images/favicon-16x16.png diff --git a/docs/images/favicon-32x32.png b/images/favicon-32x32.png similarity index 100% rename from docs/images/favicon-32x32.png rename to images/favicon-32x32.png diff --git a/docs/images/owner-favicon-16x16.png b/images/owner-favicon-16x16.png similarity index 100% rename from docs/images/owner-favicon-16x16.png rename to images/owner-favicon-16x16.png diff --git a/docs/images/owner-favicon-32x32.png b/images/owner-favicon-32x32.png similarity index 100% rename from docs/images/owner-favicon-32x32.png rename to images/owner-favicon-32x32.png diff --git a/index.html b/index.html new file mode 100644 index 0000000..3aeb24b --- /dev/null +++ b/index.html @@ -0,0 +1,76 @@ + + +
+ +