|
libwebsockets
Lightweight C library for HTML5 websockets
|
#include <lws-cache-ttl.h>
Data Fields | |
| struct lws_context * | cx |
| const char * | name |
| lws_cache_item_destroy_cb | cb |
| struct lws_cache_ttl_lru * | parent |
| const struct lws_cache_ops * | ops |
| union { | |
| struct { | |
| const char * | filepath |
| } | nscookiejar |
| } | u |
| size_t | max_footprint |
| size_t | max_items |
| size_t | max_payload |
| int | tsi |
Definition at line 220 of file lws-cache-ttl.h.
| struct lws_context* lws_cache_creation_info::cx |
Mandatory: the lws_context
Definition at line 221 of file lws-cache-ttl.h.
| const char* lws_cache_creation_info::name |
Mandatory: short cache name
Definition at line 223 of file lws-cache-ttl.h.
| lws_cache_item_destroy_cb lws_cache_creation_info::cb |
NULL, or a callback that can hook cache item destory
Definition at line 225 of file lws-cache-ttl.h.
| struct lws_cache_ttl_lru* lws_cache_creation_info::parent |
NULL, or next cache level
Definition at line 227 of file lws-cache-ttl.h.
| const struct lws_cache_ops* lws_cache_creation_info::ops |
NULL for default, heap-based ops, else custom cache storage and query implementation
Definition at line 229 of file lws-cache-ttl.h.
| union { ... } lws_cache_creation_info::u |
these are extra configuration for specific cache types
| size_t lws_cache_creation_info::max_footprint |
0, or the max heap allocation allowed before destroying lru items to keep it under the limit
Definition at line 241 of file lws-cache-ttl.h.
| size_t lws_cache_creation_info::max_items |
0, or the max number of items allowed in the cache before destroying lru items to keep it under the limit
Definition at line 244 of file lws-cache-ttl.h.
| size_t lws_cache_creation_info::max_payload |
0, or the max allowed payload size for one item
Definition at line 247 of file lws-cache-ttl.h.
| int lws_cache_creation_info::tsi |
0 unless using SMP, then tsi to bind sul to
Definition at line 249 of file lws-cache-ttl.h.