Skip to content

Commit

Permalink
feat: support cache for batch_get in CachedMetaKvBackend (#3277)
Browse files Browse the repository at this point in the history
* feat: support cache for batch_get in CachedMetaKvBackend.

* add doc of CachedMetaKvBackend

* fix: cr

* fix: correct some words

* fix cr
  • Loading branch information
fengys1996 authored Feb 6, 2024
1 parent 4cbdf64 commit 74bfb09
Show file tree
Hide file tree
Showing 8 changed files with 380 additions and 34 deletions.
7 changes: 7 additions & 0 deletions config/frontend.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ timeout = "3s"
ddl_timeout = "10s"
connect_timeout = "1s"
tcp_nodelay = true
# The configuration about the cache of the Metadata.
# default: 100000
metadata_cache_max_capacity = 100000
# default: 10m
metadata_cache_ttl = "10m"
# default: 5m
metadata_cache_tti = "5m"

# Log options, see `standalone.example.toml`
# [logging]
Expand Down
2 changes: 1 addition & 1 deletion src/catalog/src/kvbackend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

pub use client::{CachedMetaKvBackend, MetaKvBackend};
pub use client::{CachedMetaKvBackend, CachedMetaKvBackendBuilder, MetaKvBackend};

mod client;
mod manager;
Expand Down
Loading

0 comments on commit 74bfb09

Please sign in to comment.