From cf4108c034629aa79448c327d6ffc62ebe89d212 Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Fri, 18 Aug 2023 19:08:33 +0900 Subject: [PATCH] fix: fix typo --- TODO.md | 2 +- config-example.toml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TODO.md b/TODO.md index 78a364e..1e25ee1 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,7 @@ # TODO List - [Done in 0.6.0] But we need more sophistication on `Forwarder` struct. ~~Fix strategy for `h2c` requests on forwarded requests upstream. This needs to update forwarder definition. Also, maybe forwarder would have a cache corresponding to the following task.~~ -- [Initial implementation in v0.6.0] ~~**Cache option for the response with `Cache-Control: public` header directive ([#55](https://github.com/junkurihara/rust-rpxy/issues/55))**~~ Using `lru` crate might be inefficient in terms of the speed. Also, this cache feature should be a separated `feature` (But I think okay to be included in `default`). +- [Initial implementation in v0.6.0] ~~**Cache option for the response with `Cache-Control: public` header directive ([#55](https://github.com/junkurihara/rust-rpxy/issues/55))**~~ Using `lru` crate might be inefficient in terms of the speed. - Consider more sophisticated architecture for cache - Persistent cache (if possible). - etc etc diff --git a/config-example.toml b/config-example.toml index 47a5947..ec79f3d 100644 --- a/config-example.toml +++ b/config-example.toml @@ -110,7 +110,7 @@ max_idle_timeout = 10 # secs. 0 represents an infinite timeout. # If this specified, file cache feature is enabled [experimental.cache] -cache_dir = './cache' # optional. default is "./cache" relative to the current working directory -max_cache_entry = 1000 # optional. default is 1k -max_cache_each_size = 65535 # optional. default is 64k -max_cache_each_size_onmemory = 4096 # optional. default is 4k if 0, it is always file cache. +cache_dir = './cache' # optional. default is "./cache" relative to the current working directory +max_cache_entry = 1000 # optional. default is 1k +max_cache_each_size = 65535 # optional. default is 64k +max_cache_each_size_on_memory = 4096 # optional. default is 4k if 0, it is always file cache.