goshorly/db/Set.go

8 lines
145 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 {
return Client.Set(ctx, key, value, time).Err()
}