<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 28, 2015 at 10:28 AM, Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=jcolp@digium.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">jcolp@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Kia ora,<br>
<br>
I've created a wiki page[1] which details the beginnings of a basic memory based caching wizard for sorcery. Right now while caching is possible using the existing memory wizard it's not possible to define object lifetimes, so once cached it's always pulled from the cache. This wiki page uses the memory wizard as a base but defines options which can tweak the behavior. Going forward this could serve as a basis for other wizards to be created for caching purposes.<br>
<br>
Some things to consider:<br>
1. How much control and flexibility should we allow?<br>
2. Are there additional mechanisms that should be exposed to allow explicit object expiration?<br>
3. Are the defaults sane?<br>
4. Is there additional testing that should be done?<br>
5. Does anything need additional explanation?<br>
<br>
Cheers,<br>
<br>
[1] <a href="https://wiki.asterisk.org/wiki/display/~jcolp/Sorcery+Caching" target="_blank">https://wiki.asterisk.org/wiki/display/~jcolp/Sorcery+Caching</a><span class="HOEnZb"><font color="#888888"><br>
<br>
</font></span></blockquote><div><br></div><div>I didn't see any mention of writes. What happens to create, update and delete operations given that the concrete wizard behind the caching wizard may or may not support them?</div><div><br></div><div>I also wonder if a variation on this theme might help us consolidate some of the contact and contact_status issues. I'm working on a separate email for that though.</div><div><br></div></div></div></div>