| 1236 | } |
| 1237 | |
| 1238 | static 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 | |
| 1253 | static int w_cache_remove(struct sip_msg *msg, str *id, str *attr) |
| 1254 | { |
nothing calls this directly
no test coverage detected