Hi,

Is there any convention for clients to indicate which client side data
type a string value represents (e.g. string, int, bool, ..)? I'm about
to implement this for the pecl/memcache client and it would be nice to
use some common pattern. Could find any specific info on the lists
other than this:

 http://www.hjp.at/zettel/m/memcached_flags.rxml

The only client here shown to use data types are net.spy.memcached
which uses

Serialized      0x0001
Gzip            0x0002

String          0x0000  C style string (\0 byte not included)??
bool            0x0100  Stored as string "0" or "1"?
int             0x0200  32bit int, stored as decimal string, sprintf("%d", ..)?
long            0x0300  64bit int, stored as decimal string, sprintf("%ld", ..)?
Date            0x0400  Formatting? E.g. ISO 8601 style,
2004-02-12T15:19:21+00:00 or simple unix timestamp?
byte            0x0500  Same as unsigned char?
float           0x0600  Stored as decimal string, sprintf("%f", ..)?
double          0x0700  Stored as decimal string, sprintf("%f", ..)?
Bytearray       0x0800  Binary string?

It there anyone else who have implemented this sort of functionality
using other flags or formatting?

//Mikael

Reply via email to