mirror of https://gitee.com/answerdev/answer.git
26 lines
1.3 KiB
Go
26 lines
1.3 KiB
Go
package constant
|
|
|
|
import "time"
|
|
|
|
const (
|
|
UserStatusChangedCacheKey = "answer:user:status:"
|
|
UserStatusChangedCacheTime = 7 * 24 * time.Hour
|
|
UserTokenCacheKey = "answer:user:token:"
|
|
UserTokenCacheTime = 7 * 24 * time.Hour
|
|
AdminTokenCacheKey = "answer:admin:token:"
|
|
AdminTokenCacheTime = 7 * 24 * time.Hour
|
|
UserTokenMappingCacheKey = "answer:user-token:mapping:"
|
|
SiteInfoCacheKey = "answer:site-info:"
|
|
SiteInfoCacheTime = 1 * time.Hour
|
|
ConfigID2KEYCacheKeyPrefix = "answer:config:id:"
|
|
ConfigKEY2ContentCacheKeyPrefix = "answer:config:key:"
|
|
ConnectorUserExternalInfoCacheKey = "answer:connector:"
|
|
ConnectorUserExternalInfoCacheTime = 10 * time.Minute
|
|
SiteMapQuestionCacheKeyPrefix = "answer:sitemap:question:%d"
|
|
SiteMapQuestionCacheTime = time.Hour
|
|
SitemapMaxSize = 50000
|
|
NewQuestionNotificationLimitCacheKeyPrefix = "answer:new-question-notification-limit:"
|
|
NewQuestionNotificationLimitCacheTime = 7 * 24 * time.Hour
|
|
NewQuestionNotificationLimitMax = 50
|
|
)
|