ident: have redis caching dir only log on 'write', not error (#809)
This changes the behavior when the redis caching directory successfully
resolves an identity, but fails to persist to the cache. The prior
behavior was to return an error to the calling code. With this PR, the
library will log the error, but return the (successful) resolution
result.
This helps services ride out intermittent failures (packet
loss/corruption) or brief downtimes with caches (eg, redis restarts or
machine reboots).
The only downside I can think of with this is that the cache being
entirely down doesn't get noticed earlier? The package does confirm the
connection to redis at startup, so it shouldn't be possible for a
mis-configuration or non-existent backend to silently default to "always
resolving".