The data reading problem between java and php memcached has been the problem of using JAVA to read and write memcached. today, when we connect to the PHP System, we cannot get the elements stored in PHP, however, PHP obtains the elements stored in JAVA. Finally, MemAdmin is installed. check whether the Flag java of the elements stored in PHP and memcached of php read data.
There is no problem with reading and writing memcached using JAVA.
During the connection with the PHP system today, elements stored in PHP are not obtained, but elements stored in JAVA are obtained in PHP.
Finally, MemAdmin is installed. check that the Flags of elements stored in PHP are all 0, while the Flags of the runtime type stored in java are 32. Let PHP modify the stored Flags and solve the problem.
The following types of Flags are included:
public static final int MARKER_BYTE = 1;public static final int MARKER_BOOLEAN = 8192;public static final int MARKER_INTEGER = 4;public static final int MARKER_LONG = 16384;public static final int MARKER_CHARACTER = 16;public static final int MARKER_STRING = 32;public static final int MARKER_STRINGBUFFER = 64;public static final int MARKER_FLOAT = 128;public static final int MARKER_SHORT = 256;public static final int MARKER_DOUBLE = 512;public static final int MARKER_DATE = 1024;public static final int MARKER_STRINGBUILDER = 2048;public static final int MARKER_BYTEARR = 4096;