Remove unused method, update dependencies

This commit is contained in:
Jacob Gunther
2022-08-22 03:01:04 -05:00
parent cd56955210
commit 06095d9cc4
3 changed files with 3 additions and 45 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"context"
"encoding/json"
"time"
"github.com/go-redis/redis/v8"
@@ -123,20 +122,6 @@ func (r *Redis) Set(key string, value interface{}, ttl time.Duration) error {
return r.Client.Set(ctx, key, value, ttl).Err()
}
func (r *Redis) SetJSON(key string, value interface{}, ttl time.Duration) error {
if !r.Enabled {
return nil
}
data, err := json.Marshal(value)
if err != nil {
return err
}
return r.Set(key, data, ttl)
}
func (r *Redis) Close() error {
if !r.Enabled {
return nil