newrelic / newrelic-salesforce-exporter

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

Redis key `auth` TTL reset #15

Open asllop opened 9 months ago

asllop commented 9 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.