]> 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:24 +0000 (14:54 -0500)
commit7524221ddbcdc2fd7780501f3fdf36ecc2e41cb0
treebff6f72b52766392d41a11adf0017ba3698f449b
parent3277648c61f53ed8e36b9d51404d2b1979182c33
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