File tree Expand file tree Collapse file tree 1 file changed +4
-34
lines changed
Expand file tree Collapse file tree 1 file changed +4
-34
lines changed Original file line number Diff line number Diff line change 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
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
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)是不够的。你需要多走一步。
You can’t perform that action at this time.
0 commit comments