Skip to content

Commit b3e0cf3

Browse files
committed
Fixed issue with cache
1 parent f0a671e commit b3e0cf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/secrets-manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def fetch(secret_path)
6666
object = JSON.parse(response.secret_string, symbolize_names: true)
6767

6868
value = parse_value(object)
69-
set_in_memory(resolved_path, value, parse_ttl(object))
69+
cache.set(resolved_path, value, parse_ttl(object))
7070
return value
7171
rescue Aws::SecretsManager::Errors::ResourceNotFoundException => e
7272
raise SecretsManager::SecretNotFound, "Could not find secret with path #{resolved_path}"

0 commit comments

Comments
 (0)