lighttpd 1.4.x
https://www.lighttpd.net/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
520 B
32 lines
520 B
#ifndef _MOD_MAGNET_CACHE_H_ |
|
#define _MOD_MAGNET_CACHE_H_ |
|
#include "first.h" |
|
|
|
#include "buffer.h" |
|
#include "base.h" |
|
|
|
#include <lua.h> |
|
|
|
typedef struct { |
|
buffer *name; |
|
buffer *etag; |
|
|
|
lua_State *L; |
|
|
|
time_t last_used; /* LRU */ |
|
} script; |
|
|
|
typedef struct { |
|
script **ptr; |
|
|
|
size_t used; |
|
size_t size; |
|
} script_cache; |
|
|
|
script_cache *script_cache_init(void); |
|
void script_cache_free(script_cache *cache); |
|
|
|
lua_State *script_cache_get_script(server *srv, connection *con, |
|
script_cache *cache, buffer *name); |
|
|
|
#endif
|
|
|