Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions | Variables
ngx_http_cache.h File Reference
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
Include dependency graph for ngx_http_cache.h:

Go to the source code of this file.

Data Structures

struct  ngx_http_cache_valid_t
struct  ngx_http_file_cache_node_t
struct  ngx_http_cache_s
struct  ngx_http_file_cache_header_t
struct  ngx_http_file_cache_sh_t
struct  ngx_http_file_cache_s

Macros

#define NGX_HTTP_CACHE_MISS   1
#define NGX_HTTP_CACHE_BYPASS   2
#define NGX_HTTP_CACHE_EXPIRED   3
#define NGX_HTTP_CACHE_STALE   4
#define NGX_HTTP_CACHE_UPDATING   5
#define NGX_HTTP_CACHE_HIT   6
#define NGX_HTTP_CACHE_SCARCE   7
#define NGX_HTTP_CACHE_KEY_LEN   16

Functions

ngx_int_t ngx_http_file_cache_new (ngx_http_request_t *r)
ngx_int_t ngx_http_file_cache_create (ngx_http_request_t *r)
void ngx_http_file_cache_create_key (ngx_http_request_t *r)
ngx_int_t ngx_http_file_cache_open (ngx_http_request_t *r)
void ngx_http_file_cache_set_header (ngx_http_request_t *r, u_char *buf)
void ngx_http_file_cache_update (ngx_http_request_t *r, ngx_temp_file_t *tf)
ngx_int_t ngx_http_cache_send (ngx_http_request_t *)
void ngx_http_file_cache_free (ngx_http_cache_t *c, ngx_temp_file_t *tf)
time_t ngx_http_file_cache_valid (ngx_array_t *cache_valid, ngx_uint_t status)
char * ngx_http_file_cache_set_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_http_file_cache_valid_set_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)

Variables

ngx_str_t ngx_http_cache_status []

Macro Definition Documentation

#define NGX_HTTP_CACHE_BYPASS   2

Definition at line 18 of file ngx_http_cache.h.

#define NGX_HTTP_CACHE_EXPIRED   3

Definition at line 19 of file ngx_http_cache.h.

#define NGX_HTTP_CACHE_HIT   6

Definition at line 22 of file ngx_http_cache.h.

#define NGX_HTTP_CACHE_KEY_LEN   16

Definition at line 25 of file ngx_http_cache.h.

#define NGX_HTTP_CACHE_MISS   1

Definition at line 17 of file ngx_http_cache.h.

#define NGX_HTTP_CACHE_SCARCE   7

Definition at line 23 of file ngx_http_cache.h.

#define NGX_HTTP_CACHE_STALE   4

Definition at line 20 of file ngx_http_cache.h.

#define NGX_HTTP_CACHE_UPDATING   5

Definition at line 21 of file ngx_http_cache.h.

Function Documentation

ngx_int_t ngx_http_cache_send ( ngx_http_request_t )

Definition at line 974 of file ngx_http_file_cache.c.

Here is the call graph for this function:

ngx_int_t ngx_http_file_cache_create ( ngx_http_request_t r)

Definition at line 174 of file ngx_http_file_cache.c.

Here is the call graph for this function:

void ngx_http_file_cache_create_key ( ngx_http_request_t r)

Definition at line 204 of file ngx_http_file_cache.c.

Here is the call graph for this function:

void ngx_http_file_cache_free ( ngx_http_cache_t c,
ngx_temp_file_t tf 
)

Definition at line 1027 of file ngx_http_file_cache.c.

Here is the call graph for this function:

ngx_int_t ngx_http_file_cache_new ( ngx_http_request_t r)

Definition at line 152 of file ngx_http_file_cache.c.

Here is the call graph for this function:

ngx_int_t ngx_http_file_cache_open ( ngx_http_request_t r)

Definition at line 239 of file ngx_http_file_cache.c.

Here is the call graph for this function:

void ngx_http_file_cache_set_header ( ngx_http_request_t r,
u_char *  buf 
)

Definition at line 864 of file ngx_http_file_cache.c.

char* ngx_http_file_cache_set_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1588 of file ngx_http_file_cache.c.

Here is the call graph for this function:

void ngx_http_file_cache_update ( ngx_http_request_t r,
ngx_temp_file_t tf 
)

Definition at line 900 of file ngx_http_file_cache.c.

Here is the call graph for this function:

time_t ngx_http_file_cache_valid ( ngx_array_t cache_valid,
ngx_uint_t  status 
)

Definition at line 1562 of file ngx_http_file_cache.c.

char* ngx_http_file_cache_valid_set_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1815 of file ngx_http_file_cache.c.

Here is the call graph for this function:

Variable Documentation

ngx_str_t ngx_http_cache_status[]

Definition at line 50 of file ngx_http_file_cache.c.