# Path: doodle/core/models/base_model.py
# class SimpleModel(object):
#     KEY = ClassName()  # won't work for grandchild class if changed by child class
#     redis_client = redis_main_client


from .base_model import SimpleModel
# -*- coding: utf-8 -*-



class MaxID(SimpleModel):
    @classmethod
    def get_next_id(cls, for_type, increment=1):
        return cls.redis_client.hincrby(cls.KEY, for_type, increment)


# Path: doodle/core/models/base_model.py
# class SimpleModel(object):
#     KEY = ClassName()  # won't work for grandchild class if changed by child class
#     redis_client = redis_main_client


# Path: doodle/core/models/max_id.py
from .base_model import SimpleModel

# -*- coding: utf-8 -*-



class MaxID(SimpleModel):
    @classmethod
    def get_next_id(cls, for_type, increment=1):
        return cls.redis_client.hincrby(cls.KEY, for_type, increment)


    @classmethod