libwebsockets
Lightweight C library for HTML5 websockets
class="ui-resizable-handle">
Loading...
Searching...
No Matches
lws_cache_creation_info Struct Reference

#include <lws-cache-ttl.h>

Collaboration diagram for lws_cache_creation_info:

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_opsops
union { 
   struct { 
const char * filepath
   } nscookiejar
u
size_t max_footprint
size_t max_items
size_t max_payload
int tsi

Detailed Description

Definition at line 220 of file lws-cache-ttl.h.

Field Documentation

◆ cx

struct lws_context* lws_cache_creation_info::cx

Mandatory: the lws_context

Definition at line 221 of file lws-cache-ttl.h.

◆ name

const char* lws_cache_creation_info::name

Mandatory: short cache name

Definition at line 223 of file lws-cache-ttl.h.

◆ cb

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.

◆ parent

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.

◆ ops

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]

union { ... } lws_cache_creation_info::u

these are extra configuration for specific cache types

◆ max_footprint

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.

◆ max_items

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.

◆ max_payload

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.

◆ tsi

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.


The documentation for this struct was generated from the following file: