php - Does anyone know if xcache functions are atomic?

376

I'm wondering which xcache functions are atomic. I know thatxcache_inc() andxcache_dec() are both atomic. I dont know ifxcache_get() andxcache_unset() are atomic.

366

Answer

Solution:

The Feature List says that XCache supports "atomic get/set/inc/dec".

Soget is atomic, whatever that means. (It probably just means thatget never returns an in-between value, which is more or less the same thing as atomicset.)

Also, sinceset is atomic, I see no reason whyunset wouldn't be atomic, too.

People are also looking for solutions to the problem: Error creating Java Date in php

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.