package cache

import (
	"github.com/gogf/gf/v2/util/gconv"
)

type CachedEnum string

const (
	ItunesAccountTmpStopped              CachedEnum = "itunes_account_tmp_stopped"
	TMallGameThirdPartyCacheKeyTMall     CachedEnum = "tMallGameCacheKeyTMall"
	TMallGameThirdPartyCacheKeyAgiso     CachedEnum = "tMallGameCacheKeyAgiso"
	TMallGameOrderSign                   CachedEnum = "tMallGameOrderTid"
	AppleAccountTmpStopped               CachedEnum = "apple_account_tmp_stopped"
	AppleAccountTargetAccountIdByAccount CachedEnum = "apple_account_target_account_id_by_account"
	AppleAccountTargetAccountIdByUser    CachedEnum = "apple_account_target_account_id_by_user"
	RedeemAccountTargetIDByAccount       CachedEnum = "redeem_account_target_id_by_account"
	RedeemAccountTargetIDByUser          CachedEnum = "redeem_account_target_id_by_user"
	RedeemAccountTargetIDByCKAndUser     CachedEnum = "redeem_account_target_account_id_by_ck_and_user"
	RedeemAccountTmpStopped              CachedEnum = "redeem_account_tmp_stopped"
	CamelOilSettings                     CachedEnum = "camel_oil_settings"
)

func (e CachedEnum) Key(key interface{}) string {
	return gconv.String(e) + ":" + gconv.String(key)
}
