Skip to content

Commit

Permalink
feat: implement route cache (#748)
Browse files Browse the repository at this point in the history
* impl route cache

* add unit tests

* route cache config serialize

* did not reqeust to meta when no miss

* chore

* chore

* fix unit test

* fix dependency

* sort dependency

* update unit test

* chore

* change ttl data type

* unimplemented instead todo

* impl default

* Update router/src/cluster_based.rs

Co-authored-by: WEI Xikai <[email protected]>

* Update router/src/cluster_based.rs

Co-authored-by: WEI Xikai <[email protected]>

* chore

---------

Co-authored-by: WEI Xikai <[email protected]>
  • Loading branch information
MichaelLeeHZ and ShiKaiWi authored Mar 22, 2023
1 parent 556a15a commit 8674868
Show file tree
Hide file tree
Showing 7 changed files with 480 additions and 11 deletions.
238 changes: 238 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ interpreters = { workspace = true }
log = { workspace = true }
logger = { workspace = true }
meta_client = { workspace = true }
moka = { version = "0.10", features = ["future"] }
query_engine = { workspace = true }
router = { workspace = true }
serde = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ common_types = { workspace = true }
common_util = { workspace = true }
log = { workspace = true }
meta_client = { workspace = true }
moka = { version = "0.10", features = ["future"] }
serde = { workspace = true }
snafu = { workspace = true }
tokio = { workspace = true }
twox-hash = "1.6"
Loading

0 comments on commit 8674868

Please sign in to comment.