Mercurial > hg > nginx
comparison src/http/ngx_http_cache.h @ 2925:8e3e31fd00a9
remove remnants
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 06 Jun 2009 14:13:49 +0000 |
parents | b3b8c66bd520 |
children | 80a314b63c56 |
comparison
equal
deleted
inserted
replaced
2924:a0987c332d8e | 2925:8e3e31fd00a9 |
---|---|
11 #include <ngx_config.h> | 11 #include <ngx_config.h> |
12 #include <ngx_core.h> | 12 #include <ngx_core.h> |
13 #include <ngx_http.h> | 13 #include <ngx_http.h> |
14 | 14 |
15 | 15 |
16 /**/ | |
17 #define NGX_HTTP_CACHE_STALE 1 | 16 #define NGX_HTTP_CACHE_STALE 1 |
18 #define NGX_HTTP_CACHE_AGED 2 | |
19 #define NGX_HTTP_CACHE_THE_SAME 3 | |
20 /**/ | |
21 | 17 |
22 #define NGX_HTTP_CACHE_KEY_LEN 16 | 18 #define NGX_HTTP_CACHE_KEY_LEN 16 |
23 | 19 |
24 | 20 |
25 typedef struct { | 21 typedef struct { |
26 ngx_uint_t status; | 22 ngx_uint_t status; |
27 time_t valid; | 23 time_t valid; |
28 } ngx_http_cache_valid_t; | 24 } ngx_http_cache_valid_t; |
29 | 25 |
30 | |
31 /* ngx_http_file_cache_node_t takes exactly 64 bytes on FreeBSD/i386 */ | |
32 | 26 |
33 typedef struct { | 27 typedef struct { |
34 ngx_rbtree_node_t node; | 28 ngx_rbtree_node_t node; |
35 ngx_queue_t queue; | 29 ngx_queue_t queue; |
36 | 30 |
39 | 33 |
40 unsigned count:20; | 34 unsigned count:20; |
41 unsigned uses:10; | 35 unsigned uses:10; |
42 unsigned valid_msec:10; | 36 unsigned valid_msec:10; |
43 unsigned error:10; | 37 unsigned error:10; |
44 /* 7 unused bits */ | |
45 unsigned exists:1; | 38 unsigned exists:1; |
39 /* 13 unused bits */ | |
46 | 40 |
47 ngx_file_uniq_t uniq; | 41 ngx_file_uniq_t uniq; |
48 time_t expire; | 42 time_t expire; |
49 time_t valid_sec; | 43 time_t valid_sec; |
50 size_t body_start; | 44 size_t body_start; |