Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦境迷离
Zio Redis
提交
89daa306
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 搜索 >>
未验证
提交
89daa306
编写于
5月 30, 2020
作者:
M
Mika'il Khan
提交者:
GitHub
5月 30, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add migrate, randomkey, restore and wait keys (#51)
上级
cf1c8fc4
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
90 addition
and
4 deletion
+90
-4
.gitignore
.gitignore
+1
-0
src/main/scala/zio/redis/Input.scala
src/main/scala/zio/redis/Input.scala
+29
-0
src/main/scala/zio/redis/api/Keys.scala
src/main/scala/zio/redis/api/Keys.scala
+32
-2
src/main/scala/zio/redis/options/Keys.scala
src/main/scala/zio/redis/options/Keys.scala
+25
-0
src/main/scala/zio/redis/options/Shared.scala
src/main/scala/zio/redis/options/Shared.scala
+2
-0
src/main/scala/zio/redis/options/SortedSets.scala
src/main/scala/zio/redis/options/SortedSets.scala
+0
-2
src/main/scala/zio/redis/package.scala
src/main/scala/zio/redis/package.scala
+1
-0
未找到文件。
.gitignore
浏览文件 @
89daa306
/.idea/
/.bloop
target/
src/main/scala/zio/redis/Input.scala
浏览文件 @
89daa306
...
...
@@ -10,7 +10,9 @@ import scala.util.matching.Regex
sealed
trait
Input
[
-A
]
object
Input
{
case
object
AbsTtlInput
extends
Input
[
AbsTtl
]
case
object
AggregateInput
extends
Input
[
Aggregate
]
case
object
AuthInput
extends
Input
[
Auth
]
case
object
BoolInput
extends
Input
[
Boolean
]
case
object
BitFieldGetInput
extends
Input
[
BitFieldGet
]
case
object
BitFieldSetInput
extends
Input
[
BitFieldSet
]
...
...
@@ -20,9 +22,12 @@ object Input {
case
object
BitPosRangeInput
extends
Input
[
BitPosRange
]
case
object
ByteInput
extends
Input
[
Chunk
[
Byte
]]
case
object
ChangedInput
extends
Input
[
Changed
]
case
object
CopyInput
extends
Input
[
Copy
]
case
object
CountInput
extends
Input
[
Count
]
case
object
DoubleInput
extends
Input
[
Double
]
case
object
DurationInput
extends
Input
[
Duration
]
case
object
FreqInput
extends
Input
[
Freq
]
case
object
IdleTimeInput
extends
Input
[
IdleTime
]
case
object
IncrementInput
extends
Input
[
Increment
]
case
object
KeepTtlInput
extends
Input
[
KeepTtl
]
case
object
LexRangeInput
extends
Input
[
LexRange
]
...
...
@@ -38,6 +43,8 @@ object Input {
case
object
RadiusUnitInput
extends
Input
[
RadiusUnit
]
case
object
RangeInput
extends
Input
[
Range
]
case
object
RegexInput
extends
Input
[
Regex
]
case
object
ReplaceInput
extends
Input
[
Replace
]
case
object
StoreDistInput
extends
Input
[
StoreDist
]
case
object
StoreInput
extends
Input
[
Store
]
case
object
ScoreRangeInput
extends
Input
[
ScoreRange
]
...
...
@@ -57,6 +64,28 @@ object Input {
final
case
class
Tuple5
[
-A
,
-B
,
-C
,
-D
,
-E
](
_1
:
Input
[
A
],
_2
:
Input
[
B
],
_3
:
Input
[
C
],
_4
:
Input
[
D
],
_5
:
Input
[
E
])
extends
Input
[(
A
,
B
,
C
,
D
,
E
)]
final
case
class
Tuple7
[
-A
,
-B
,
-C
,
-D
,
-E
,
-F
,
-G
](
_1
:
Input
[
A
],
_2
:
Input
[
B
],
_3
:
Input
[
C
],
_4
:
Input
[
D
],
_5
:
Input
[
E
],
_6
:
Input
[
F
],
_7
:
Input
[
G
]
)
extends
Input
[(
A
,
B
,
C
,
D
,
E
,
F
,
G
)]
final
case
class
Tuple9
[
-A
,
-B
,
-C
,
-D
,
-E
,
-F
,
-G
,
-H
,
-I
](
_1
:
Input
[
A
],
_2
:
Input
[
B
],
_3
:
Input
[
C
],
_4
:
Input
[
D
],
_5
:
Input
[
E
],
_6
:
Input
[
F
],
_7
:
Input
[
G
],
_8
:
Input
[
H
],
_9
:
Input
[
I
]
)
extends
Input
[(
A
,
B
,
C
,
D
,
E
,
F
,
G
,
H
,
I
)]
final
case
class
Tuple11
[
-A
,
-B
,
-C
,
-D
,
-E
,
-F
,
-G
,
-H
,
-I
,
-J
,
-K
](
_1
:
Input
[
A
],
_2
:
Input
[
B
],
...
...
src/main/scala/zio/redis/api/Keys.scala
浏览文件 @
89daa306
package
zio.redis.api
import
zio.redis.RedisCommand
import
zio.redis.Input._
import
zio.redis.Output._
import
zio.redis.RedisCommand
trait
Keys
{
final
val
del
=
RedisCommand
(
"DEL"
,
NonEmptyList
(
StringInput
),
LongOutput
)
...
...
@@ -11,15 +11,44 @@ trait Keys {
final
val
expire
=
RedisCommand
(
"EXPIRE"
,
Tuple2
(
StringInput
,
DurationInput
),
BoolOutput
)
final
val
expireAt
=
RedisCommand
(
"EXPIREAT"
,
Tuple2
(
StringInput
,
TimeInput
),
BoolOutput
)
final
val
keys
=
RedisCommand
(
"KEYS"
,
StringInput
,
ChunkOutput
)
final
val
migrate
=
RedisCommand
(
"MIGRATE"
,
Tuple9
(
StringInput
,
LongInput
,
StringInput
,
LongInput
,
LongInput
,
OptionalInput
(
CopyInput
),
OptionalInput
(
ReplaceInput
),
OptionalInput
(
AuthInput
),
OptionalInput
(
NonEmptyList
(
StringInput
))
),
StringOutput
)
final
val
move
=
RedisCommand
(
"MOVE"
,
Tuple2
(
StringInput
,
LongInput
),
BoolOutput
)
final
val
persist
=
RedisCommand
(
"PERSIST"
,
StringInput
,
BoolOutput
)
final
val
pExpire
=
RedisCommand
(
"PEXPIRE"
,
Tuple2
(
StringInput
,
DurationInput
),
BoolOutput
)
final
val
pExpireAt
=
RedisCommand
(
"PEXPIREAT"
,
Tuple2
(
StringInput
,
TimeInput
),
BoolOutput
)
final
val
pTtl
=
RedisCommand
(
"PTTL"
,
StringInput
,
DurationOutput
)
final
val
randomKey
=
RedisCommand
(
"RANDOMKEY"
,
NoInput
,
ByteOutput
)
final
val
rename
=
RedisCommand
(
"RENAME"
,
Tuple2
(
StringInput
,
StringInput
),
UnitOutput
)
final
val
renameNx
=
RedisCommand
(
"RENAMENX"
,
Tuple2
(
StringInput
,
StringInput
),
BoolOutput
)
final
val
scan
=
RedisCommand
(
final
val
restore
=
RedisCommand
(
"RESTORE"
,
Tuple7
(
StringInput
,
LongInput
,
ByteInput
,
OptionalInput
(
ReplaceInput
),
OptionalInput
(
AbsTtlInput
),
OptionalInput
(
IdleTimeInput
),
OptionalInput
(
FreqInput
)
),
StringOutput
)
final
val
scan
=
RedisCommand
(
"SCAN"
,
Tuple4
(
LongInput
,
OptionalInput
(
RegexInput
),
OptionalInput
(
LongInput
),
OptionalInput
(
StringInput
)),
ScanOutput
...
...
@@ -29,4 +58,5 @@ trait Keys {
final
val
ttl
=
RedisCommand
(
"TTL"
,
StringInput
,
DurationOutput
)
final
val
typeOf
=
RedisCommand
(
"TYPE"
,
StringInput
,
StringOutput
)
final
val
unlink
=
RedisCommand
(
"UNLINK"
,
NonEmptyList
(
StringInput
),
LongOutput
)
final
val
wait_
=
RedisCommand
(
"WAIT"
,
Tuple2
(
LongInput
,
LongInput
),
LongOutput
)
}
src/main/scala/zio/redis/options/Keys.scala
0 → 100644
浏览文件 @
89daa306
package
zio.redis.options
trait
Keys
{
case
object
AbsTtl
type
AbsTtl
=
AbsTtl
.
type
case
object
Alpha
type
Alpha
=
Alpha
.
type
sealed
case
class
Auth
(
password
:
String
)
sealed
case
class
By
(
pattern
:
String
)
case
object
Copy
type
Copy
=
Copy
.
type
sealed
case
class
IdleTime
(
seconds
:
Long
)
sealed
case
class
Freq
(
frequency
:
String
)
case
object
Replace
type
Replace
=
Replace
.
type
}
src/main/scala/zio/redis/options/Shared.scala
浏览文件 @
89daa306
package
zio.redis.options
trait
Shared
{
sealed
case
class
Limit
(
offset
:
Int
,
count
:
Int
)
sealed
trait
Update
object
Update
{
...
...
src/main/scala/zio/redis/options/SortedSets.scala
浏览文件 @
89daa306
...
...
@@ -33,8 +33,6 @@ trait SortedSets {
sealed
case
class
LexRange
(
min
:
LexMinimum
,
max
:
LexMaximum
)
sealed
case
class
Limit
(
offset
:
Long
,
count
:
Long
)
sealed
case
class
MemberScore
(
score
:
Double
,
member
:
String
)
sealed
trait
ScoreMaximum
...
...
src/main/scala/zio/redis/package.scala
浏览文件 @
89daa306
...
...
@@ -12,6 +12,7 @@ package object redis
with
api
.
SortedSets
with
api
.
Transactions
with
options
.
Geo
with
options
.
Keys
with
options
.
Shared
with
options
.
SortedSets
with
options
.
Strings
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录