From: Vlad S. <vl...@cr...> - 2006-06-29 22:43:49
|
I am not going to argue, it is just old ns_cache used to have all functionality and was very popular and useful. Now we have more limited ns_cache_XXX family and standalone ns_cache does not work anymore. I do not see who benefits from all this. Zoran Vasiljevic wrote: > Am 29.06.2006 um 22:44 schrieb Vlad Seryakov: > >> So, i am being told all the time that i do not use the ns_cache in >> right >> way, then somebody can define what is the correct and the only >> right way >> of using ns_cache facility in the server environment? I could be >> lost or >> un-educated enough but i would like to know? >> > > It is not the question of "right" or "wrong"! Lets not misunderstand > each other. > I can't tell you what is "right" or what's "wrong" but I can try to > explain how I see the "usual" cache usage.... > > Noormally I'd use cache to save data which is rather expensive to > calculate. In that case I will temporary save (hard calculated) > data into some (size-limited) storage and read it from there. > I also expect that this data will not change for some (rather short) > period of time and for that time I will retain it in the cache. > > A real-world examnple would be DNS lookup, or SQL selection > or things lie that. In our code, I extensively use caches > to store ID's of elements in a tree structure (similar to > directory) which is emulated in 2 dimension table(s). > It is rather expensive to get that info and since it does not > change that often, I put those things in the cache. > > I will however NOT use cache structures to maintain values used > for commumincation or decision purposes. I would use nsv's or > files or similar. > > Having said that, I must stress that it is perfectly allright > for me that anybody uses whatever tools he needs to get the job > done. It is just that I see cache module usage in a certain patterns > which may or may not correspond to the view of other people. > > So what we are all about here is to understand what EXACTLY you > are after and perhaps see if the cache as-is is the optimal solution > for that, because our experience may be different from yours. > But: if you say: guys, I know what I need, then I'm allright with that > and will support you all the way. > > Allright? > > Cheers, > Zoran > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |