Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦境迷离
Zio Redis
提交
2f4c77b0
Z
Zio Redis
项目概览
梦境迷离
/
Zio Redis
大约 1 年 前同步成功
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
Zio Redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2f4c77b0
编写于
3月 17, 2023
作者:
D
Dejan Mijić
提交者:
GitHub
3月 17, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update README (#781)
上级
7e172934
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
22 addition
and
28 deletion
+22
-28
.github/workflows/site.yml
.github/workflows/site.yml
+4
-4
README.md
README.md
+9
-12
docs/index.md
docs/index.md
+9
-12
未找到文件。
.github/workflows/site.yml
浏览文件 @
2f4c77b0
...
...
@@ -18,7 +18,7 @@ jobs:
if
:
${{ github.event_name == 'pull_request' }}
steps
:
-
name
:
Git Checkout
uses
:
actions/checkout@v3.
4
.0
uses
:
actions/checkout@v3.
3
.0
with
:
fetch-depth
:
'
0'
-
name
:
Setup Scala
...
...
@@ -41,7 +41,7 @@ jobs:
if
:
${{ ((github.event_name == 'release') && (github.event.action == 'published')) || (github.event_name == 'workflow_dispatch') }}
steps
:
-
name
:
Git Checkout
uses
:
actions/checkout@v3.
4
.0
uses
:
actions/checkout@v3.
3
.0
with
:
fetch-depth
:
'
0'
-
name
:
Setup Scala
...
...
@@ -65,7 +65,7 @@ jobs:
if
:
${{ (github.event_name == 'push') || ((github.event_name == 'release') && (github.event.action == 'published')) }}
steps
:
-
name
:
Git Checkout
uses
:
actions/checkout@v3.
4
.0
uses
:
actions/checkout@v3.
3
.0
with
:
ref
:
${{ github.head_ref }}
fetch-depth
:
'
0'
...
...
@@ -84,7 +84,7 @@ jobs:
git add README.md
git commit -m "Update README.md" || echo "No changes to commit"
-
name
:
Create Pull Request
uses
:
peter-evans/create-pull-request@v4.2.
4
uses
:
peter-evans/create-pull-request@v4.2.
3
with
:
body
:
|-
Autogenerated changes after running the `sbt docs/generateReadme` command of the [zio-sbt-website](https://zio.dev/zio-sbt) plugin.
...
...
README.md
浏览文件 @
2f4c77b0
...
...
@@ -4,25 +4,20 @@
# ZIO Redis
[
ZIO Redis
](
https://github.com/zio/zio-redis
)
is a ZIO native Redis client.
[
![Development
](
https://img.shields.io/badge/Project%20Stage-Development-green.svg
)
](https://github.com/zio/zio/wiki/Project-Stages) !
[
CI Badge
](
https://github.com/zio/zio-redis/workflows/CI/badge.svg
)
[
![Sonatype Releases
]
(https://img.shields.io/nexus/r/https/oss.sonatype.org/dev.zio/zio-redis_2.13.svg?label=Sonatype%20Release)](https://oss.sonatype.org/content/repositories/releases/dev/zio/zio-redis_2.13/)
[
![Sonatype Snapshots
](
https://img.shields.io/nexus/s/https/oss.sonatype.org/dev.zio/zio-redis_2.13.svg?label=Sonatype%20Snapshot
)
](https://oss.sonatype.org/content/repositories/snapshots/dev/zio/zio-redis_2.13/)
[
![javadoc
](
https://javadoc.io/badge2/dev.zio/zio-redis-docs_2.13/javadoc.svg
)
](https://javadoc.io/doc/dev.zio/zio-redis-docs_2.13)
[
![ZIO Redis
](
https://img.shields.io/github/stars/zio/zio-redis?style=social
)
](https://github.com/zio/zio-redis)
## Introduction
ZIO Redis is in the experimental phase of development, but its goals are:
-
**Type Safety**
-
**Performance**
-
**Minimum Dependency**
-
**ZIO Native**
[
ZIO Redis
](
https://github.com/zio/zio-redis
)
is a ZIO-native Redis client.
It aims to provide a
**type-safe**
and
**performant**
API for accessing Redis
instances.
## Installation
Since the ZIO Redis is in the experimental phase, it is not released yet, but we can use snapshots
:
To use ZIO Redis, add the following line to your
`build.sbt`
:
```
scala
libraryDependencies
+=
"dev.zio"
%%
"zio-redis"
%
"
<version>
"
libraryDependencies
+=
"dev.zio"
%%
"zio-redis"
%
"
0.1.0
"
```
## Example
...
...
@@ -37,7 +32,7 @@ To run this example we should put following dependencies in our `build.sbt` file
```
scala
libraryDependencies
++=
Seq
(
"dev.zio"
%%
"zio-redis"
%
"
<version>
"
,
"dev.zio"
%%
"zio-redis"
%
"
0.1.0
"
,
"dev.zio"
%%
"zio-schema-protobuf"
%
"0.3.0"
)
```
...
...
@@ -71,7 +66,9 @@ object ZIORedisExample extends ZIOAppDefault {
To test you can use the embedded redis instance by adding to your build:
```
libraryDependencies := "dev.zio" %% "zio-redis-embedded" % <version>```
```
scala
libraryDependencies
:=
"dev.zio"
%%
"zio-redis-embedded"
%
"0.1.0"
```
Then you can supply
`EmbeddedRedis.layer.orDie`
as your
`RedisConfig`
and you're good to go!
...
...
docs/index.md
浏览文件 @
2f4c77b0
...
...
@@ -4,25 +4,20 @@ title: "Introduction to ZIO Redis"
sidebar_label
:
"
ZIO
Redis"
---
[
ZIO Redis
](
https://github.com/zio/zio-redis
)
is a ZIO native Redis client.
@PROJECT_BADGES@
## Introduction
ZIO Redis is in the experimental phase of development, but its goals are:
-
**Type Safety**
-
**Performance**
-
**Minimum Dependency**
-
**ZIO Native**
[
ZIO Redis
](
https://github.com/zio/zio-redis
)
is a ZIO-native Redis client.
It aims to provide a
**type-safe**
and
**performant**
API for accessing Redis
instances.
## Installation
Since the ZIO Redis is in the experimental phase, it is not released yet, but we can use snapshots
:
To use ZIO Redis, add the following line to your
`build.sbt`
:
```
scala
libraryDependencies
+=
"dev.zio"
%%
"zio-redis"
%
"
<version>
"
libraryDependencies
+=
"dev.zio"
%%
"zio-redis"
%
"
@VERSION@
"
```
## Example
...
...
@@ -37,7 +32,7 @@ To run this example we should put following dependencies in our `build.sbt` file
```
scala
libraryDependencies
++=
Seq
(
"dev.zio"
%%
"zio-redis"
%
"
<version>
"
,
"dev.zio"
%%
"zio-redis"
%
"
@VERSION@
"
,
"dev.zio"
%%
"zio-schema-protobuf"
%
"0.3.0"
)
```
...
...
@@ -71,7 +66,9 @@ object ZIORedisExample extends ZIOAppDefault {
To test you can use the embedded redis instance by adding to your build:
```
libraryDependencies := "dev.zio" %% "zio-redis-embedded" % <version>```
```
scala
libraryDependencies
:=
"dev.zio"
%%
"zio-redis-embedded"
%
"@VERSION@"
```
Then you can supply
`EmbeddedRedis.layer.orDie`
as your
`RedisConfig`
and you're good to go!
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录