fully convert redis over to custom key value store type

This commit is contained in:
Gregory Wells
2026-06-08 18:24:59 -04:00
parent f6016bbdb1
commit 09e0683ae0
5 changed files with 94 additions and 85 deletions
+2 -1
View File
@@ -42,6 +42,7 @@ func NewRedisStore[Value any]() *RedisStore[Value] {
store := &RedisStore[Value]{
client: rdb,
ctx: ctx,
prefix: "random_string_1",
}
return store
}
@@ -77,7 +78,7 @@ func (m *RedisStore[Value]) Get(sessionID string) (Value, error) {
return session_data, ErrKeyBackend
}
if err := json.Unmarshal(data, session_data); err != nil {
if err := json.Unmarshal(data, &session_data); err != nil {
logging.Error(err.Error())
return session_data, ErrKeyBackend
}