> Hi.
>
> I see that multiple caches
> <https://github.com/unbit/uwsgi-docs/blob/master/Changelog-1.9.rst#id19>
> is
> possible in uWSGI. Now, I want to define 2(or more) caches with different
> configs(mostly related to the size of a *blocksize*). How can we specify
> which cache we are using via api
> <http://uwsgi-docs.readthedocs.org/en/latest/PHP.html#uwsgi-api-support>?
> And if we define 2 caches, which will be used by default? First declared
> in
> config?
>
>
all the php cache function takes an optional parameter (the name of the
cache):
uwsgi_cache_get('foo', 'bar')
will take the key 'foo' from the cache 'bar' (docs must be updated, a pull
request will be wellcomed ;)
When no cache is specified the default one is used. The default one is the
first configured.
--
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi