def get_next_bookmarkId(redis_obj): ''' Get the next unique bookmark id ''' key = "global:bookmarkId" return Redis.next_unique_key(redis_obj, key)
def get_next_userId(redis_obj): ''' Get the next unique user id ''' key = "global:userId" return Redis.next_unique_key(redis_obj, key)