53 struct lws_cache_ttl_lru;
76 const char *specific_key,
const uint8_t *source,
133 const void **pdata,
size_t *psize);
154 const void **pdata,
size_t *psize);
221 struct lws_context *
cx;
235 const char *filepath;
254 struct lws_cache_ttl_lru *
259 (*
destroy)(
struct lws_cache_ttl_lru **_cache);
264 (*
expunge)(
struct lws_cache_ttl_lru *cache);
269 (*
write)(
struct lws_cache_ttl_lru *cache,
const char *specific_key,
274 (*
tag_match)(
struct lws_cache_ttl_lru *cache,
const char *wc,
275 const char *tag,
char lookup_rules);
281 (*
lookup)(
struct lws_cache_ttl_lru *cache,
const char *wildcard_key,
286 (*
invalidate)(
struct lws_cache_ttl_lru *cache,
const char *wildcard_key);
290 (*
get)(
struct lws_cache_ttl_lru *cache,
const char *specific_key,
291 const void **pdata,
size_t *psize);
296 (*
debug_dump)(
struct lws_cache_ttl_lru *cache);
struct lws_cache_ttl_lru * parent
const struct lws_cache_ops * ops
union lws_cache_creation_info::@1 u
lws_cache_item_destroy_cb cb
LWS_VISIBLE LWS_EXTERN void lws_cache_debug_dump(struct lws_cache_ttl_lru *cache)
LWS_VISIBLE LWS_EXTERN int lws_cache_item_get(struct lws_cache_ttl_lru *cache, const char *specific_key, const void **pdata, size_t *psize)
struct lws_cache_match lws_cache_match_t
LWS_VISIBLE LWS_EXTERN int lws_cache_lookup(struct lws_cache_ttl_lru *cache, const char *wildcard_key, const void **pdata, size_t *psize)
LWS_VISIBLE LWS_EXTERN int lws_cache_expunge(struct lws_cache_ttl_lru *cache)
LWS_VISIBLE LWS_EXTERN struct lws_cache_ttl_lru * lws_cache_create(const struct lws_cache_creation_info *info)
LWS_VISIBLE LWS_EXTERN uint64_t lws_cache_footprint(struct lws_cache_ttl_lru *cache)
LWS_VISIBLE LWS_EXTERN int lws_cache_write_through(struct lws_cache_ttl_lru *cache, const char *specific_key, const uint8_t *source, size_t size, lws_usec_t expiry, void **ppay)
void(* lws_cache_item_destroy_cb)(void *item, size_t size)
LWS_VISIBLE LWS_EXTERN int lws_cache_results_walk(lws_cache_results_t *walk_ctx)
LWS_VISIBLE LWS_EXTERN int lws_cache_item_remove(struct lws_cache_ttl_lru *cache, const char *wildcard_key)
LWS_VISIBLE LWS_EXTERN void lws_cache_destroy(struct lws_cache_ttl_lru **cache)
LWS_VISIBLE const struct lws_cache_ops lws_cache_ops_heap lws_cache_ops_nscookiejar
struct lws_cache_results lws_cache_results_t
int(* get)(struct lws_cache_ttl_lru *cache, const char *specific_key, const void **pdata, size_t *psize)
void(* destroy)(struct lws_cache_ttl_lru **_cache)
int(* lookup)(struct lws_cache_ttl_lru *cache, const char *wildcard_key, lws_dll2_owner_t *results_owner)
void(* debug_dump)(struct lws_cache_ttl_lru *cache)
int(* write)(struct lws_cache_ttl_lru *cache, const char *specific_key, const uint8_t *source, size_t size, lws_usec_t expiry, void **ppvoid)
int(* invalidate)(struct lws_cache_ttl_lru *cache, const char *wildcard_key)
int(* tag_match)(struct lws_cache_ttl_lru *cache, const char *wc, const char *tag, char lookup_rules)
int(* expunge)(struct lws_cache_ttl_lru *cache)