<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Apr 30, 2015 at 10:13 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">George Joseph wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Apr 28, 2015 at 10:28 AM, Joshua Colp <<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><br>
<mailto:<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>>> wrote:<br>
<br>
Kia ora,<br>
<br>
I've created a wiki page[1] which details the beginnings of a basic<br>
memory based caching wizard for sorcery. Right now while caching is<br>
possible using the existing memory wizard it's not possible to<br>
define object lifetimes, so once cached it's always pulled from the<br>
cache. This wiki page uses the memory wizard as a base but defines<br>
options which can tweak the behavior. Going forward this could serve<br>
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<br>
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><br>
<br>
<br>
I didn't see any mention of writes. What happens to create, update and<br>
delete operations given that the concrete wizard behind the caching<br>
wizard may or may not support them?<br>
</blockquote>
<br>
The behavior remains the same as if there were no caching wizard in place.<span class="HOEnZb"><font color="#888888"><br>
<br>
</font></span></blockquote><div><br></div><div>Ok, but will the caching wizard support the C,U,D operations as the memory wizard does?.</div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div>