dpgaspar / s3werkzeugcache

S3 implementation of the werkzeug cache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

s3werkzeugcache

Following is an example of use of s3cache for a server side encryption enabled bucket

  bucket = 'test-bucket'

  put_extra_args = {'ServerSideEncryption': 'AES256'}
  cache = S3Cache(bucket, 'cache_test/', put_extra_args=put_extra_args)
  cache.add('name', 's3cache')
  val = cache.get('name')
  print(val)

About

S3 implementation of the werkzeug cache

License:MIT License


Languages

Language:Python 100.0%