Esempio n. 1
0
def grouprem(t, name, members):
    """Remove from group"""
    if members:
        rd.srem('%s:%s' % (t, name), *members)
    else:
        rd.srem(t+'s', name)
        rd.delete('%s:%s' % (t, name))
Esempio n. 2
0
def logout():
    rd.delete('id')  # 세션 삭제
    return render_template('login/login.html')
Esempio n. 3
0
 def invalidate_cache(self):
     keys = rd.keys(self._get_key() + '*')
     if keys:
         return rd.delete(*keys)
     return True