I recently plugged memcaching into my PHP web software. I have a class, Cache, that manages storing things in my memcache pool. In that class, I also maintain an member array--a "threadcache"--that stores up to 100 of the most-used items.
My question is, is threadcaching going to be faster than memcaching? I would think so, coming from the argument that a memcache request potentially goes through my local network, to another computer's RAM, back through the network, and back to the requesting computer's RAM. Whereas, with threadcaching, everything would happen locally on the server running the PHP request.