Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦境迷离
Zio Redis
提交
4d5eed50
Z
Zio Redis
项目概览
梦境迷离
/
Zio Redis
10 个月 前同步成功
通知
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
4d5eed50
编写于
8月 23, 2022
作者:
D
Dejan Mijić
提交者:
GitHub
8月 23, 2022
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update Scala 2.12 and Rediculous (#634)
上级
7b08682d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
9 deletion
+13
-9
.github/workflows/ci.yml
.github/workflows/ci.yml
+1
-1
.mergify.yml
.mergify.yml
+1
-2
benchmarks/src/main/scala/zio/redis/benchmarks/QueryRunner.scala
...rks/src/main/scala/zio/redis/benchmarks/QueryRunner.scala
+10
-5
build.sbt
build.sbt
+1
-1
未找到文件。
.github/workflows/ci.yml
浏览文件 @
4d5eed50
...
...
@@ -73,7 +73,7 @@ jobs:
fail-fast
:
false
matrix
:
java
:
[
'
8'
,
'
11'
,
'
17'
]
scala
:
[
'
2.12.1
5
'
,
'
2.13.8'
]
scala
:
[
'
2.12.1
6
'
,
'
2.13.8'
]
steps
:
-
name
:
Checkout current branch
uses
:
actions/checkout@v3.0.2
...
...
.mergify.yml
浏览文件 @
4d5eed50
...
...
@@ -17,10 +17,9 @@ pull_request_rules:
-
name
:
merge Scala Steward's PRs
conditions
:
-
author=scala-steward
-
"
body~=(labels:
library-update,
early-semver-minor)|(labels:
library-update,
early-semver-patch)|(labels:
sbt-plugin-update,
early-semver-minor)|(labels:
sbt-plugin-update,
early-semver-patch)|(labels:
test-library-update)"
-
"
body~=(labels:
library-update,
early-semver-minor)|(labels:
library-update,
early-semver-patch)|(labels:
sbt-plugin-update,
early-semver-minor)|(labels:
sbt-plugin-update,
early-semver-patch)|(labels:
scalafix-rule-update)|(labels:
test-library-update)"
-
"
status-success=license/cla"
-
"
status-success=ci"
actions
:
merge
:
method
:
squash
benchmarks/src/main/scala/zio/redis/benchmarks/QueryRunner.scala
浏览文件 @
4d5eed50
...
...
@@ -8,7 +8,6 @@ import dev.profunktor.redis4cats.codecs.splits._
import
dev.profunktor.redis4cats.data.RedisCodec
import
dev.profunktor.redis4cats.effect.Log.NoOp.instance
import
dev.profunktor.redis4cats.
{
Redis
,
RedisCommands
}
import
fs2.io.net.Network
import
io.chrisdavenport.rediculous.RedisConnection
import
io.lettuce.core.ClientOptions
import
laserdisc.auto.autoRefine
...
...
@@ -27,10 +26,10 @@ object QueryRunner {
Laserdisc
.
use
(
f
).
unsafeRunSync
()
}
implicit
val
redic
oul
usRunner
:
QueryRunner
[
RediculousClient
]
=
implicit
val
redic
ulo
usRunner
:
QueryRunner
[
RediculousClient
]
=
new
QueryRunner
[
RediculousClient
]
{
def
unsafeRunWith
(
f
:
RediculousClient
=>
CIO
[
Unit
])
:
Unit
=
Redic
oul
us
.
use
(
f
).
unsafeRunSync
()
Redic
ulo
us
.
use
(
f
).
unsafeRunSync
()
}
implicit
val
redis4CatsStringRunner
:
QueryRunner
[
Redis4CatsClient
[
String
]]
=
...
...
@@ -50,8 +49,14 @@ object QueryRunner {
private
[
this
]
final
val
Laserdisc
:
Resource
[
CIO
,
LaserDiscClient
]
=
RedisClient
[
CIO
].
to
(
RedisHost
,
RedisPort
)
private
[
this
]
final
val
Redicoulus
:
Resource
[
CIO
,
RediculousClient
]
=
RedisConnection
.
queued
[
CIO
](
Network
[
CIO
],
host
"127.0.0.1"
,
port
"6379"
,
maxQueued
=
10000
,
workers
=
2
)
private
[
this
]
final
val
Rediculous
:
Resource
[
CIO
,
RediculousClient
]
=
RedisConnection
.
queued
[
CIO
]
.
withHost
(
host
"127.0.0.1"
)
.
withPort
(
port
"6379"
)
.
withMaxQueued
(
10000
)
.
withWorkers
(
2
)
.
build
private
[
this
]
final
val
Redis4CatsLong
:
Resource
[
CIO
,
RedisCommands
[
CIO
,
String
,
Long
]]
=
{
val
longCodec
=
Codecs
.
derive
(
RedisCodec
.
Utf8
,
stringLongEpi
)
...
...
build.sbt
浏览文件 @
4d5eed50
...
...
@@ -57,7 +57,7 @@ lazy val benchmarks =
publish
/
skip
:=
true
,
libraryDependencies
++=
Seq
(
"dev.profunktor"
%%
"redis4cats-effects"
%
"1.2.0"
,
"io.chrisdavenport"
%%
"rediculous"
%
"0.
1.1
"
,
"io.chrisdavenport"
%%
"rediculous"
%
"0.
4.0
"
,
"io.laserdisc"
%%
"laserdisc-fs2"
%
"0.5.0"
,
"dev.zio"
%%
"zio-schema-protobuf"
%
"0.1.11"
)
...
...
梦境迷离
@qq_34446485
mentioned in commit
f801a912
·
9月 10, 2022
mentioned in commit
f801a912
mentioned in commit f801a912a5372ad13a08302dbd7a20174d379e8b
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录