Skip to content

Commit

Permalink
publish 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Apr 18, 2023
1 parent 050559d commit d1fc4e8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stretto"
version = "0.7.2"
version = "0.8.0"
authors = ["Al Liu <[email protected]>"]
description = "Stretto is a high performance thread-safe memory-bound Rust cache."
homepage = "https://github.com/al8n/stretto"
Expand Down
22 changes: 11 additions & 11 deletions README-zh_hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@
- [同步](#同步)
- [异步](#异步)
- [配置](#配置)
- [num_counters](#num_counters)
- [max_cost](#max_cost)
- [key_builder](#key_builder)
- [buffer_size](#buffer_size)
- [num\_counters](#num_counters)
- [max\_cost](#max_cost)
- [key\_builder](#key_builder)
- [buffer\_size](#buffer_size)
- [metrics](#metrics)
- [ignore_internal_cost](#ignore_internal_cost)
- [cleanup_duration](#cleanup_duration)
- [update_validator](#update_validator)
- [ignore\_internal\_cost](#ignore_internal_cost)
- [cleanup\_duration](#cleanup_duration)
- [update\_validator](#update_validator)
- [callback](#callback)
- [coster](#coster)
- [hasher](#hasher)
Expand All @@ -66,25 +66,25 @@
- 使用同步缓存
```toml
[dependencies]
stretto = "0.7"
stretto = "0.8"
```
```toml
[dependencies]
stretto = { version = "0.7", features = ["sync"] }
stretto = { version = "0.8", features = ["sync"] }
```


- 使用异步缓存
```toml
[dependencies]
stretto = { version = "0.7", features = ["async"] }
stretto = { version = "0.8", features = ["async"] }
```

- 同步异步同时使用
```toml
[dependencies]
stretto = { version = "0.7", features = ["full"] }
stretto = { version = "0.8", features = ["full"] }
```

## 操作方法
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,25 @@ English | [简体中文](README-zh_hans.md)
- Use Cache.
```toml
[dependencies]
stretto = "0.7"
stretto = "0.8"
```
or
```toml
[dependencies]
stretto = { version = "0.7", features = ["sync"] }
stretto = { version = "0.8", features = ["sync"] }
```


- Use AsyncCache
```toml
[dependencies]
stretto = { version = "0.7", features = ["async"] }
stretto = { version = "0.8", features = ["async"] }
```

- Use both Cache and AsyncCache
```toml
[dependencies]
stretto = { version = "0.7", features = ["full"] }
stretto = { version = "0.8", features = ["full"] }
```

## Related
Expand Down

0 comments on commit d1fc4e8

Please sign in to comment.