> >> Hullo! >> >> My understanding is that multiple caches are possible by adding multiple >> cache2 options, as long as each are named uniquely. However, it appears >> that the python module's cache_set and cache_get are only able to access >> the cache listed first. I'm not aware of a parameter for the cache's >> name. >> I see that the php module supports cache name in the getter, function. >> Is there a way to achieve this via Python as well? >> >> I'm using Python 3 and uWSGI 2.0.11. >> The documentation I'm looking at is: >> https://uwsgi-docs.readthedocs.org/en/latest/PythonModule.html#cache-functions >> >> Many thanks! >> >> > > > > Hi that docs looks outdated, the cache_server parameter is indeed the > cache_name. It can be the cache_name or cache_name + server in the form > name@server. > > Check the bitmap test for an heavy example use: > > https://github.com/unbit/uwsgi/blob/master/t/cachebitmap.py > https://github.com/unbit/uwsgi/blob/master/t/cachebitmap.ini > >
Docs updated, more infos here: http://uwsgi-docs.readthedocs.org/en/latest/Caching.html#accessing-the-cache-from-your-applications-using-the-cache-api -- Roberto De Ioris http://unbit.com _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
