Mercurial > hg > nginx-quic
comparison src/http/ngx_http_cache.h @ 2616:d19979e0d980
introduce cache manager instead of cache cleaner
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 30 Mar 2009 07:45:55 +0000 |
parents | 3a8a53c0c42f |
children | b3b8c66bd520 |
comparison
equal
deleted
inserted
replaced
2615:ceef364208c8 | 2616:d19979e0d980 |
---|---|
46 | 46 |
47 ngx_file_uniq_t uniq; | 47 ngx_file_uniq_t uniq; |
48 time_t expire; | 48 time_t expire; |
49 time_t valid_sec; | 49 time_t valid_sec; |
50 size_t body_start; | 50 size_t body_start; |
51 off_t length; | |
51 } ngx_http_file_cache_node_t; | 52 } ngx_http_file_cache_node_t; |
52 | 53 |
53 | 54 |
54 struct ngx_http_cache_s { | 55 struct ngx_http_cache_s { |
55 ngx_file_t file; | 56 ngx_file_t file; |
98 ngx_queue_t *queue; | 99 ngx_queue_t *queue; |
99 ngx_slab_pool_t *shpool; | 100 ngx_slab_pool_t *shpool; |
100 | 101 |
101 ngx_path_t *path; | 102 ngx_path_t *path; |
102 | 103 |
104 ngx_atomic_t *cold; | |
105 off_t *size; | |
106 | |
107 off_t max_size; | |
108 size_t bsize; | |
109 | |
103 time_t inactive; | 110 time_t inactive; |
104 time_t created; | 111 |
105 time_t clean_time; | 112 ngx_msec_t last; |
106 time_t next_clean_time; | 113 ngx_uint_t files; |
107 | 114 |
108 ngx_shm_zone_t *shm_zone; | 115 ngx_shm_zone_t *shm_zone; |
109 }; | 116 }; |
110 | 117 |
111 | 118 |