auth-cache.h revision 12a34eb68607d0f8c7c3dc973ee605e89d44ba30
#ifndef __AUTH_CACHE_H
#define __AUTH_CACHE_H
struct auth_cache;
struct auth_request;
/* Parses all %x variables from query and compresses them into tab-separated
list, so it can be used as a cache key. */
/* Create a new cache. max_size specifies the maximum amount of memory in
bytes to use for cache (it's not fully exact). ttl_secs specifies time to
live for cache record, requests older than that are not used. */
/* Clear the cache. */
/* Look key from cache. key should be the same string as returned by
auth_cache_parse_key(). */
const struct auth_request *request,
/* Insert key => value into cache. */
const struct auth_request *request,
#endif