Page 1 of 1

Questions about APC.

Posted: Sun Mar 01, 2009 1:55 pm
by kaisellgren
Hi,

Is there a way I could determine how many bytes of data can I cache:

Code: Select all

apc_store('foo', $bar);
More over, is that cache shared with other processes or customers on shared hosting?

One more question, what happens if the limit of bytes has exceeded for the cache? The apc_store() returns a false?

Re: Questions about APC.

Posted: Sun Mar 01, 2009 3:00 pm
by Mark Baker
kaisellgren wrote:Is there a way I could determine how many bytes of data can I cache:
apc_sma_info() will return the available memory for each segment
kaisellgren wrote:More over, is that cache shared with other processes or customers on shared hosting?
Cache is shared across all customers that share the same web server.
kaisellgren wrote:One more question, what happens if the limit of bytes has exceeded for the cache? The apc_store() returns a false?
Haven't tried, but I'm always careful about TTL for cache entries, and explicitly clear down anything that I no longer intend to use