Skip to content

Commit 5aa99bd

Browse files
Update index.md
1 parent f948329 commit 5aa99bd

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

docs/lab/smt/index.md

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ nav:
2727

2828
添加库依赖,下面是如何在 SBT 中使用
2929

30-
> 在gradle,maven中,通常`smt-annotations`被替换为`smt-annotations_2.12`这种。其中,`2.12`表示Scala版本号。
30+
> 在gradle,maven中,通常`smt-annotations`被替换为`smt-annotations_2.12`其中,`2.12`表示Scala版本号。
3131
3232
## cache
3333

@@ -57,15 +57,15 @@ nav:
5757
- 零依赖,类型安全。
5858

5959
```scala
60-
"org.bitlap" %% "smt-csv" % "<VERSION>" // 从0.5.2开始
60+
"org.bitlap" %% "smt-csv" % "<VERSION>"
6161
```
6262

6363
## csv-derive
6464

6565
- `DeriveCsvConverter` 为Scala`case class`自动派生`Converter`实例。
6666

6767
```scala
68-
"org.bitlap" %% "smt-csv-derive" % "<VERSION>" // 从0.5.2开始
68+
"org.bitlap" %% "smt-csv-derive" % "<VERSION>"
6969
```
7070

7171
## annotations
@@ -82,37 +82,7 @@ nav:
8282
> Intellij插件 `Scala-Macro-Tools`
8383
8484
```scala
85-
"org.bitlap" %% "smt-annotations" % "<VERSION>" // 从0.6.0开始名字改成 smt-annotations
86-
```
87-
88-
## cacheable [不可上生产]
89-
90-
基于zio的类似Spring`@Cacheable``@CacheEvict`注解的缓存API定义。该模块不包含具体的存储媒介。
91-
92-
- `@cacheable` / `Cache.apply`
93-
- `@cacheEvict` / `Cache.evict`
94-
95-
```scala
96-
// 内部包含的依赖: zio, zio-streams, zio-logging
97-
"org.bitlap" %% "smt-cacheable" % "<VERSION>" // 不支持Scala2.11.x
98-
```
99-
100-
## cacheable-redis [不可上生产]
101-
102-
基于zio和zio-redis的分布式缓存实现,内部依赖`cacheable`
103-
104-
> TODO,目前不可用
105-
106-
```scala
107-
"org.bitlap" %% "smt-cacheable-redis" % "<VERSION>" // 不支持Scala2.11.x
108-
```
109-
110-
## cacheable-caffeine [不可上生产]
111-
112-
基于zio和caffeine的内存缓存实现,内部依赖`cacheable`。(不支持Scala2.11.x)
113-
114-
```scala
115-
"org.bitlap" %% "smt-cacheable-caffeine" % "<VERSION>"
85+
"org.bitlap" %% "smt-annotations" % "<VERSION>"
11686
```
11787

11888
该库已发布到maven中央仓库,请使用最新版本。仅将本库导入构建系统(例如gradle、sbt)是不够的。你需要多走一步。

0 commit comments

Comments
 (0)