libwebsockets
Lightweight C library for HTML5 websockets
lws-cache-ttl.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lws_cache_match
 
struct  lws_cache_results
 
struct  lws_cache_creation_info
 
struct  lws_cache_ops
 
union  lws_cache_creation_info.u
 
struct  lws_cache_creation_info.u.nscookiejar
 

Typedefs

typedef struct lws_cache_match lws_cache_match_t
 
typedef struct lws_cache_results lws_cache_results_t
 
typedef void(* lws_cache_item_destroy_cb) (void *item, size_t size)
 

Functions

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)
 
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_item_get (struct lws_cache_ttl_lru *cache, const char *specific_key, const void **pdata, size_t *psize)
 
LWS_VISIBLE LWS_EXTERN int lws_cache_item_remove (struct lws_cache_ttl_lru *cache, const char *wildcard_key)
 
LWS_VISIBLE LWS_EXTERN uint64_t lws_cache_footprint (struct lws_cache_ttl_lru *cache)
 
LWS_VISIBLE LWS_EXTERN void lws_cache_debug_dump (struct lws_cache_ttl_lru *cache)
 
LWS_VISIBLE LWS_EXTERN int lws_cache_results_walk (lws_cache_results_t *walk_ctx)
 
LWS_VISIBLE LWS_EXTERN struct lws_cache_ttl_lru * lws_cache_create (const struct lws_cache_creation_info *info)
 
LWS_VISIBLE LWS_EXTERN void lws_cache_destroy (struct lws_cache_ttl_lru **cache)
 
LWS_VISIBLE LWS_EXTERN int lws_cache_expunge (struct lws_cache_ttl_lru *cache)
 

Variables

LWS_VISIBLE const struct lws_cache_ops lws_cache_ops_heap lws_cache_ops_nscookiejar