def get_all_sessions(max_expired_age=None):
q = {'Select': 'ALL_ATTRIBUTES'}
if max_expired_age is not None:
q['FilterExpression'] = Attr('expires').gte(int(time.time()-max_expired_age))
return collect_results(get_session_table().scan,q)
dynamo_sessions.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录