def _store_key(self, obj, interval, idstring=""):
        """
        Tries to create a store_key for the object.  Returns a tuple
        (isdb, store_key) where isdb is a boolean True if obj was a
        database object, False otherwise.

        Args:
            obj (Object): Subscribing object.
            interval (int): Ticker interval
            idstring (str, optional): Additional separator between
                different subscription types.

        """
        if hasattr(obj, "db_key"):
            # create a store_key using the database representation
            objkey = pack_dbobj(obj)
            isdb = True
        else:
            # non-db object, look for a property "key" on it, otherwise
            # use its memory location.
            try:
                objkey = _GA(obj, "key")
            except __HOLE__:
                objkey = id(obj)
            isdb = False
        # return sidb and store_key
        return isdb, (objkey, interval, idstring)
dataset/ETHPy150Open evennia/evennia/evennia/scripts/tickerhandler.py/TickerHandler._store_key