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