<p>Hello,</p>

<p>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.</p>

<p>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 ).</p>

<p>For the moment, if you want a one to many relationship I'd suggest either storing them in CSV or JSON format. </p>

<p>Best Regards,<br>
Vlad</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/OpenSIPS/opensips/issues/151#issuecomment-32392190'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNTM0MjI1NSwiZGF0YSI6eyJpZCI6MjIyODUyMTd9fQ==--d5989ce092b407658f13cd4b7343224199a1ff8a.gif' height='1' width='1'></p>