func (d dismissiveList) Del(value string) error {
	_, err := database.RedisClient.ZRem(d.name, redis.Z{
		Member: value,
	}).Result()
	return err
}
Del will remove a given value from the list
package utils
import (
	"fmt"
	"github.com/Scribblerockerz/cryptletter/pkg/database"
	"github.com/go-redis/redis"
	"strconv"
	"time"
)
type DismissiveList interface {
	Add(value string, ttl int64) error
	Set(value string, ttl int64) error
	Has(value string) bool
	Del(value string) error
	All() ([]string, error)
	Drp() error
}
type dismissiveList struct {
	name string
}
func (d dismissiveList) Add(value string, ttl int64) error {
	_, err := database.RedisClient.ZAdd(d.name, redis.Z{
		Score: float64(time.Now().Unix() + ttl),
		Member: value,
	}).Result()
	return err
}
func (d dismissiveList) Set(value string, ttl int64) error {
	_, err := database.RedisClient.ZAddXX(d.name, redis.Z{
		Score: float64(time.Now().Unix() + ttl),
		Member: value,
	}).Result()
	return err
}