def lookup_canarytoken_alert_count(canarytoken): key = KEY_CANARYTOKEN_ALERT_COUNT + canarytoken.value() return db.get(key)
def get_canary_google_api_key(): return db.get(KEY_CANARY_GOOGLE_API_KEY)
def get_geoinfo_from_cache(ip): key = KEY_CANARY_IP_CACHE + ip return simplejson.loads(db.get(key))
def lookup_canarytoken_alert_count(canarytoken): key = KEY_CANARYTOKEN_ALERT_COUNT+canarytoken.value() return db.get(key)
def get_kc_endpoint(): return db.get(KEY_KUBECONFIG_SERVEREP)