Exemple #1
0
func AlreadyResent(messageId, email string) bool {
	uri, _ := cache.Get(messageId)
	if uri == "" {
		return false
	}
	v, _ := cache.Get(email + uri)
	return v == Resent
}
Exemple #2
0
func MarkResent(messageId, email string) (uri string) {
	uri, _ = cache.Get(messageId)
	if uri != "" {
		cache.Set(email+uri, Resent, TTL)
	}
	return uri
}
Exemple #3
0
func (a *App) Status(id string) (string, error) {
	return cache.Get(id)
}
Exemple #4
0
func IsBlacklisted(thing string) bool {
	value, _ := cache.Get(key(thing))
	return value == Value
}