Lines Matching refs:l1
19 struct lws_cache_ttl_lru *l1;
35 l1 = lws_cache_create(&ci);
36 if (!l1)
41 if (lws_cache_write_through(l1, "a", (const uint8_t *)"is_a", 5,
45 if (lws_cache_write_through(l1, "b", (const uint8_t *)"is_b", 5,
51 if (lws_cache_item_get(l1, "a", (const void **)&po, &size) ||
55 if (lws_cache_item_get(l1, "b", (const void **)&po, &size) ||
81 if (!lws_cache_item_get(l1, "a", (const void **)&po, &size)) {
92 lws_cache_destroy(&l1);
104 struct lws_cache_ttl_lru *l1;
120 l1 = lws_cache_create(&ci);
121 if (!l1)
126 if (lws_cache_write_through(l1, "a", (const uint8_t *)"is_a", 5,
130 if (lws_cache_write_through(l1, "b", (const uint8_t *)"is_b", 5,
136 if (!lws_cache_item_get(l1, "a", (const void **)&po, &size))
139 if (lws_cache_item_get(l1, "b", (const void **)&po, &size) ||
148 lws_cache_destroy(&l1);
173 struct lws_cache_ttl_lru *l1 = NULL, *nsc;
200 l1 = lws_cache_create(&ci);
201 if (!l1)
205 lws_cache_debug_dump(l1);
211 if (lws_cache_write_through(l1, tag_cookie1,
219 lws_cache_debug_dump(l1);
221 if (lws_cache_write_through(l1, tag_cookie2,
229 lws_cache_debug_dump(l1);
231 if (lws_cache_write_through(l1, tag_cookie3,
239 lws_cache_debug_dump(l1);
245 if (lws_cache_item_get(l1, tag_cookie1, (const void **)&po, &size) ||
252 if (lws_cache_item_get(l1, tag_cookie2, (const void **)&po, &size) ||
258 if (lws_cache_item_get(l1, tag_cookie3, (const void **)&po, &size) ||
294 if (!lws_cache_item_get(l1, "x.com|y|z", (const void **)&po, &size)) {
307 n = lws_cache_lookup(l1, "host.com|/|*",
328 n = lws_cache_lookup(l1, "host.com|/xxx|*",
348 n = lws_cache_lookup(l1, "host.com|/yyyy|*",
368 n = lws_cache_lookup(l1, "host.com|/yyyy|*",
384 if (lws_cache_item_remove(l1, tag_cookie1))
388 lws_cache_debug_dump(l1);
394 n = lws_cache_lookup(l1, "host.com|/|*",
412 if (lws_cache_write_through(l1, tag_cookie4,
425 n = lws_cache_lookup(l1, "host.com|/yy|*",
445 n = lws_cache_lookup(l1, "host.com|/yyy|*",
467 lws_cache_destroy(&l1);