goshorly/db/Set.go

8 lines
153 B
Go
Raw Permalink Normal View History

2022-01-13 19:06:30 +00:00
package db
import "time"
func Set(key string, value interface{}, time time.Duration) error {
2022-01-25 18:14:09 +00:00
return Client_redis().Set(ctx, key, value, time).Err()
2022-01-13 19:06:30 +00:00
}