[PATCH] utf8 flag support on perl lib
tomash.brechko at gmail.com
Thu Jan 10 10:14:59 UTC 2008
On Thu, Jan 10, 2008 at 13:09:07 +0300, Tomash Brechko wrote:
> Besides, more often than not you use memcached client together with
> some other means to get the data if it's missing from the cache.
> While you may fix C::M(::F), not every other backend preserves these
> flags automatically. Perhaps a cleaner solution would be to get the
> data either from memcached or from another backend, and then to
> restore the flags if desired. It's always safe to enable UTF-8, and
> it's up to your script policy to manage tainted flag.
One more note: consider DBI module. If doesn't _store_ any flags
along with the data (there's no place for them to store into), but you
may ask the module to _set_ UTF-8 or tainted flags on data retrieved.
Perhaps this is worth implementing in C::M and C::M::F, however it's
easily done on script's side.
More information about the memcached