Skip to content

Commit

Permalink
enh: add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 25, 2024
1 parent 005849d commit ceda68f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dcor_shared/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def get_s3():
return s3_client, s3_session, s3_resource


@functools.lru_cache()
def is_available():
"""Return True if S3 credentials have been specified"""
s3_key_id = get_ckan_config_option("dcor_object_store.access_key_id")
Expand Down

0 comments on commit ceda68f

Please sign in to comment.