MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / w_cache_store

Function w_cache_store

core_cmds.c:1238–1251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1236}
1237
1238static int w_cache_store(struct sip_msg *msg, str *id, str *attr, str *val,
1239 int *expire)
1240{
1241 if (!attr->s || !attr->len) {
1242 LM_ERR("attribute cannot be empty\n");
1243 return E_UNSPEC;
1244 }
1245 if (!attr->s || !attr->len) {
1246 LM_ERR("value cannot be empty\n");
1247 return E_UNSPEC;
1248 }
1249
1250 return cachedb_store(id, attr, val, expire ? *expire : 0);
1251}
1252
1253static int w_cache_remove(struct sip_msg *msg, str *id, str *attr)
1254{

Callers

nothing calls this directly

Calls 1

cachedb_storeFunction · 0.85

Tested by

no test coverage detected