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))
def logout(): rd.delete('id') # 세션 삭제 return render_template('login/login.html')
def invalidate_cache(self): keys = rd.keys(self._get_key() + '*') if keys: return rd.delete(*keys) return True