python sae
// For SAE 编译文件存放在memcache中
$smarty->compile_dir = 'saemc://smartytpl/';
$smarty->cache_dir = 'saemc://smartytpl/';
$smarty->compile_locking = false; // 防止调用touch,saemc会自动更新时间,不需要touch
# 创建一个bucket的instance
>>> from sae.storage import Bucket
>>> bucket = Bucket('t')
>>> # 创建该bucket
>>> bucket.put()
>>> # 修改该bucket的acl和缓存过期时间。
>>> bucket.post(acl='.r:.sinaapp.com,.r:sae.sina.com.cn', metadata={'expires': '1d'})
>>> # 获取该bucket的属性信息
>>> attrs = bucket.stat()
>>> print attrs