Skip to content

Commit 57c8066

Browse files
committed
fix CacheMode serialization
1 parent 76453da commit 57c8066

File tree

1 file changed

+4
-0
lines changed
  • rust/cubesql/cubesql/src/compile/engine/df

1 file changed

+4
-0
lines changed

rust/cubesql/cubesql/src/compile/engine/df/scan.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,13 @@ impl MemberField {
8282

8383
#[derive(Debug, Clone, Serialize)]
8484
pub enum CacheMode {
85+
#[serde(rename = "stale-if-slow")]
8586
StaleIfSlow,
87+
#[serde(rename = "stale-while-revalidate")]
8688
StaleWhileRevalidate,
89+
#[serde(rename = "must-revalidate")]
8790
MustRevalidate,
91+
#[serde(rename = "no-cache")]
8892
NoCache,
8993
}
9094

0 commit comments

Comments
 (0)