newrelic / newrelic-salesforce-exporter

New Relic integration for Salesforce logs.
Apache License 2.0
10 stars 14 forks source link

Redis key `auth` TTL reset #15

Open asllop opened 7 months ago

asllop commented 7 months ago

Description

When cache_enabled is used, the integration will cache the access token on Redis. It sets the key with a TTL of 2 days, but the key appears without TTL after being reused (TTL = -1).

Steps to Reproduce

Run the integration a couple of times and then check the TTL by connecting to redis and running the command ttl auth.

Expected Behavior

The auth key should have a TTL and expire after 2 days since the last time it was set.