Mercurial > hg > nginx
comparison src/http/ngx_http_cache.h @ 2952:0998606fbfd4
$upstream_cache_status
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 18 Jun 2009 13:34:47 +0000 |
parents | 55ceaef03d34 |
children | 8fc7b94f647b |
comparison
equal
deleted
inserted
replaced
2951:5acd98486a33 | 2952:0998606fbfd4 |
---|---|
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 #define NGX_HTTP_CACHE_STALE 1 | 16 #define NGX_HTTP_CACHE_MISS 1 |
17 #define NGX_HTTP_CACHE_UPDATING 2 | 17 #define NGX_HTTP_CACHE_EXPIRED 2 |
18 #define NGX_HTTP_CACHE_STALE 3 | |
19 #define NGX_HTTP_CACHE_UPDATING 4 | |
20 #define NGX_HTTP_CACHE_HIT 5 | |
18 | 21 |
19 #define NGX_HTTP_CACHE_KEY_LEN 16 | 22 #define NGX_HTTP_CACHE_KEY_LEN 16 |
20 | 23 |
21 | 24 |
22 typedef struct { | 25 typedef struct { |
122 void ngx_http_file_cache_update(ngx_http_request_t *r, ngx_temp_file_t *tf); | 125 void ngx_http_file_cache_update(ngx_http_request_t *r, ngx_temp_file_t *tf); |
123 ngx_int_t ngx_http_cache_send(ngx_http_request_t *); | 126 ngx_int_t ngx_http_cache_send(ngx_http_request_t *); |
124 void ngx_http_file_cache_free(ngx_http_request_t *r, ngx_temp_file_t *tf); | 127 void ngx_http_file_cache_free(ngx_http_request_t *r, ngx_temp_file_t *tf); |
125 time_t ngx_http_file_cache_valid(ngx_array_t *cache_valid, ngx_uint_t status); | 128 time_t ngx_http_file_cache_valid(ngx_array_t *cache_valid, ngx_uint_t status); |
126 | 129 |
127 | |
128 char *ngx_http_file_cache_set_slot(ngx_conf_t *cf, ngx_command_t *cmd, | 130 char *ngx_http_file_cache_set_slot(ngx_conf_t *cf, ngx_command_t *cmd, |
129 void *conf); | 131 void *conf); |
130 char *ngx_http_file_cache_valid_set_slot(ngx_conf_t *cf, ngx_command_t *cmd, | 132 char *ngx_http_file_cache_valid_set_slot(ngx_conf_t *cf, ngx_command_t *cmd, |
131 void *conf); | 133 void *conf); |
132 | 134 |
135 extern ngx_str_t ngx_http_cache_status[]; | |
136 | |
133 | 137 |
134 #endif /* _NGX_HTTP_CACHE_H_INCLUDED_ */ | 138 #endif /* _NGX_HTTP_CACHE_H_INCLUDED_ */ |