haproxy/include/types/cache.h
William Lallemand 41db46035e MEDIUM: cache: configuration parsing and initialization
Parse a configuration section "cache" and a http-{response,request}
actions.

Example:

    listen frt
        mode http
        http-response cache-store foobar
        http-request cache-use foobar

    cache foobar
        total-max-size 4   # size in megabytes
2017-10-31 21:17:19 +01:00

13 lines
220 B
C

#ifndef _TYPES_CACHE_H
#define _TYPES_CACHE_H
struct cache_obj {
int exp; /* expire time */
int etag; /* e-tag entry */
int last; /* last entry */
void *buf; /* ptr to buffer */
}
#endif /*_TYPES_CACHE_H */