[OpenSIPS-Devel] [opensips] Feature request: cache_store/cache_fetch an AVP with multiple values (#151)

vladpaiu notifications at github.com
Wed Jan 15 19:10:55 CET 2014


Hello,

All the cache_* ( store, fetch, etc ) functions accept either $var of $avp pvars , but they only store and fetch just the topmost value of AVPs.

So the issue is not that all the values are not being fetched, they are not even fetched. Unfortunately, some of the back-ends ( like local, memchached ) do not support this type of one to many key-value relationship and also such changes to the cache_store/cache_fetch functions would not be backward compatible ( some people might already be using AVPs there but only expecting the topmost values to be pushed to the back-end ).

For the moment, if you want a one to many relationship I'd suggest either storing them in CSV or JSON format. 
 
Best Regards,
Vlad

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/151#issuecomment-32392190
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20140115/1dbf0a04/attachment.htm>


More information about the Devel mailing list