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