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
although it'd go in contrib) but I see little use for a
DAL('redis').
Anyway, since we have a MEMDB that store DB in memcache we can make
that more general and have a DAL('cache.ram'),DAL('cache.disk'),
DAL('cache.memcache') and DAL('cache.redis'), etc. I will add the
second to a wishlist for the new dal.
Massimo
On Mar 17, 11:56 am, Kuba Kucharski <[email protected]> wrote:
> "
> 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 depending on the types. Redis supports different
> kind of sorting abilities for Sets and Lists.
> "
>
> --
> Kuba
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.