Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 def __init__(self, **kwargs):
     super(BookmarkList, self).__init__(**kwargs)
     self.bookmark_order = RedisOrderedList(self.BOOK_ORDER_KEY, self)
Exemplo n.º 4
0
 def __init__(self, **kwargs):
     """Initialize collection Redis building block."""
     super(Review, self).__init__(**kwargs)
     self.colls = RedisOrderedList(self.LISTS_KEY, self)