]> git.evergreen-ils.org Git - OpenSRF.git/commit
LP#1652382: handle cases where supplied key is longer than 250 bytes
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 15 Feb 2017 19:12:34 +0000 (14:12 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 16 Feb 2017 19:54:58 +0000 (14:54 -0500)
commit7ec6c1a4b3fc99f10bd1b3c9b07a0008672cf3f6
tree3f11cfe5c0f9f92120734218871f7495940d0a3d
parente58f20fd69b1fb2e94765a2bf9067ba1cbb9d2d9
LP#1652382: handle cases where supplied key is longer than 250 bytes

With this patch, if cache clients want to use a key longer
than the memcached text protocol limit of 250 bytes, the
key is normalized to 'shortened_' + md5_hex(normalized_key).

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
src/libopensrf/osrf_cache.c
src/perl/lib/OpenSRF/Utils/Cache.pm