That, OR another way is to use cache_keys to get a list of keys, and to cache_pop(key) for each key.
Basically cache_pop(key) will do an atomic cache_get + cache_del. On Thu, Sep 11, 2014 at 3:02 PM, Roberto De Ioris <[email protected]> wrote: > > > cool, only uwsgi.cache_pop_items() left ? > > > > because I want to keep a cache of counters in uwsgi > > > > and from a @rbtimer I pop multiple items (and i don't even know the keys > > that are in cache, hence the pop) and save them in db > > > > > > I am not sure to follow you. > > You mean that a random/efficient item is automatically returned and > removed from the cache ? > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
