Hello,
i'm wondering if adding to cache api a function that test the value of
the key and only update it if a simple condition like e.g. less than and
greater than.
# update key only if value is bigger than the one stored
cache_update_if(key, value, uwsgi.CACHE_GT)
The use case is keeping stuff like the most visited item, the item with
most "actions" in the cache. Not that for this kind of things the race
between checking and updating is that important but still may be useful.
thanks
riccardo
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi