]> 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:55:57 +0000 (14:55 -0500)
commitc1eae17ad8b61d62ad6795ca3cd01347c39c7903
treeee8ebd0c7eba0ce6155426914eeeb3cb0d5e517f
parentb2ed8ef36baa1242448beae89ffe51a98f8175d1
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