summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_cache.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-03-30 07:45:55 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-03-30 07:45:55 +0000
commit19298ec1d3b426ec33c4f06209d96edfbaf7f9de (patch)
tree2f717d2f64ec3ef3ee9083d79a799dd8c0b24329 /src/http/ngx_http_cache.h
parent1be7419d10a4c2226783f280af9e2aa7ff48b738 (diff)
downloadnginx-19298ec1d3b426ec33c4f06209d96edfbaf7f9de.tar.gz
nginx-19298ec1d3b426ec33c4f06209d96edfbaf7f9de.tar.bz2
introduce cache manager instead of cache cleaner
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_cache.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h
index b18d53961..f84c61895 100644
--- a/src/http/ngx_http_cache.h
+++ b/src/http/ngx_http_cache.h
@@ -48,6 +48,7 @@ typedef struct {
time_t expire;
time_t valid_sec;
size_t body_start;
+ off_t length;
} ngx_http_file_cache_node_t;
@@ -100,10 +101,16 @@ struct ngx_http_file_cache_s {
ngx_path_t *path;
+ ngx_atomic_t *cold;
+ off_t *size;
+
+ off_t max_size;
+ size_t bsize;
+
time_t inactive;
- time_t created;
- time_t clean_time;
- time_t next_clean_time;
+
+ ngx_msec_t last;
+ ngx_uint_t files;
ngx_shm_zone_t *shm_zone;
};