Ok, so usually a set will be smth like:

uwsgi_cache_set("foo", "test", 10, "bar")

When I use the above call from php, I have a *Segmentation Fault. *

The third params is expire one and the next is the cache name?


On 3 December 2014 at 11:46, Roberto De Ioris <[email protected]> wrote:

>
> > 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
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to