LP#1902583: Retry cache commands exactly one time user/miker/lp-1902583-retry-once-on-cache-error
authorMike Rylander <mrylander@gmail.com>
Mon, 2 Nov 2020 15:25:58 +0000 (10:25 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 2 Nov 2020 20:00:55 +0000 (15:00 -0500)
commitd5b95d4184f70ecfc46b83fee8307874ac9bd681
treed50c03039a9b8523ad3372d949a3277dc4750a30
parentb459fffcfc5c15835c6565f926bcecbdf54d8fa7
LP#1902583: Retry cache commands exactly one time

If OpenSRF apps want any chance to recover from a memcached server
failure they need to retry the command at least once, because
libmemcached does not (nor do memcached proxies).  This commit adds that
single retry capability.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
src/libopensrf/osrf_cache.c
src/perl/lib/OpenSRF/Utils/Cache.pm