def _getConfig(self, options, host, prop):
        p = eval("options.%s" % prop)
        if p:
            return p
        try:
            return self.__config.get(host, prop)
        except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
            return self.__config.get("global", prop)
Calculate keyslot for a given key.
dataset/ETHPy150Open nacx/kahuna/kahuna/plugins/machine.py/MachinePlugin._getConfig--crossover with--dataset/ETHPy150Open openstack/dragonflow/dragonflow/db/drivers/redis_calckey.py/key2slot