def get_users(ids): return {1: 'boo', 2: expire('foo', 100)}
async def get_val(key): if key == 'exp': return expire(key, 10) else: return key
def get_user(user_id): return expire(u'user-{}'.format(user_id), 100)
def get_val(ids): result = {1: 'boo', 2: expire('foo', 10)} return {it: result[it] for it in ids if it in result}