def __init__(self, **kwargs): """Initialize collection Redis building block.""" super(Collection, self).__init__(**kwargs) self.recs = RedisUnorderedList(self.RECS_KEY, self) self.lists = RedisOrderedList(self.LISTS_KEY, self) self.list_names = RedisNamedMap(self.LIST_NAMES_KEY, self, self.LIST_REDIR_KEY)
def __init__(self, **kwargs): super(Collection, self).__init__(**kwargs) self.recs = RedisUnorderedList(self.RECS_KEY, self) self.lists = RedisOrderedList(self.LISTS_KEY, self) self.list_names = RedisNamedMap(self.LIST_NAMES_KEY, self, self.LIST_REDIR_KEY)
def __init__(self, **kwargs): super(User, self).__init__(**kwargs) self.colls = RedisNamedMap(self.COLLS_KEY, self, self.COLLS_REDIR_KEY)