Skip to content

Instantly share code, notes, and snippets.

@ryan-lane
Last active December 2, 2015 21:51
Show Gist options
  • Save ryan-lane/0dbd4aee884d8928d802 to your computer and use it in GitHub Desktop.
Save ryan-lane/0dbd4aee884d8928d802 to your computer and use it in GitHub Desktop.
Using _cache_id
# cache something
_cache_id('elb', sub_resource=name, resource_id=lb[0], region=region, key=key, keyid=keyid, profile=profile)
# retrieve the cached item
_cache_id('elb', sub_resource=name, region=region, key=key, keyid=keyid, profile=profile)
# Invalidate something
_cache_id('elb', sub_resource=name, invalidate=True, region=region, key=key, keyid=keyid, profile=profile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment