[web2py] Re: Do you know Redis?

2010-04-26 Thread knitatoms
Good tutorial on Redis from Simon Willison: http://simonwillison.net/static/2010/redis-tutorial/ interesting use of it for session data. On Mar 17, 6:05 pm, mdipierro wrote: > You can do this also with cache.disk. You can cache any primitive > python structure including lists and dicts. > I am

[web2py] Re: Do you know Redis?

2010-03-17 Thread mdipierro
You can do this also with cache.disk. You can cache any primitive python structure including lists and dicts. I am sure redis has richer apis and lots more features than cache.disk but still its apis are closer to cache than dbs. I think we can have a cache.redis (and I will make a patch for it al

Re: [web2py] Re: Do you know Redis?

2010-03-17 Thread Kuba Kucharski
" Values in Redis can be Strings as in a conventional key-value store, but also Lists, Sets, and SortedSets (to be support in version 1.1). This data types allow pushing/poping elements, or adding/removing them, also perform server side union, intersection, difference between sets, and so forth dep

Re: [web2py] Re: Do you know Redis?

2010-03-17 Thread Kuba Kucharski
>I think this is more appropriate as a replacement for cache.ram than >db. maybe. but there is more than caching there: " While all the data lives in memory, changes are asynchronously saved on disk using flexible policies based on elapsed time and/or number of updates since last save. If you ca

[web2py] Re: Do you know Redis?

2010-03-17 Thread mdipierro
I think this is more appropriate as a replacement for cache.ram than db. On Mar 16, 11:38 pm, Thadeus Burgess wrote: > Interesting, though for integration with the DAL this would require... > some work! :) It seems that you will have to manually store lots of > metadata that a RDMS already handle