I am experimenting with LSMCD and configure it to use a unix socket:
When trying to connect through the LSCache plugin, I tried to set port as 0 as advised in the documentation but that did not work. Somehow setting to the port to 11211 (which is the standard port when not using a unix socket) made the connection test pass.
Displaying the getServerList() output looks like this:
even though I am not specifying any port in the config file.
#CACHED.ADDR=127.0.0.1:11211
CACHED.ADDR=UDS:///tmp/lsmcd/lsmcd.sock
CACHED.ADDR=UDS:///tmp/lsmcd/lsmcd.sock
Displaying the getServerList() output looks like this:
array(1) { [0]=> array(3) { ["host"]=> string(21) "/tmp/lsmcd/lsmcd.sock" ["port"]=> int(11211) ["type"]=> string(6) "SOCKET" } }