aboutsummaryrefslogtreecommitdiff
path: root/redisDB.go
diff options
context:
space:
mode:
Diffstat (limited to 'redisDB.go')
-rw-r--r--redisDB.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/redisDB.go b/redisDB.go
index f21ac50..9138971 100644
--- a/redisDB.go
+++ b/redisDB.go
@@ -3,11 +3,15 @@ package main
import (
"fmt"
"sync"
+ "time"
)
-
+type Item struct {
+ Value any
+ ExpiresAt *time.Time
+}
type RedisDB struct {
mu sync.Mutex
- data map[string]any
+ data map[string]Item
}
type SimpleString string