diff --git a/adapter/adapter.go b/adapter/adapter.go index b80d346..74cb498 100644 --- a/adapter/adapter.go +++ b/adapter/adapter.go @@ -71,7 +71,7 @@ func (a *RedigoAdapter) Set(ctx context.Context, key string, value interface{}, } defer conn.Close() - _, err = redigo.DoContext(conn, ctx, "SET", key, value) + _, err = redigo.DoContext(conn, ctx, "SET", key, value, "EX", int(expiration.Seconds())) if err != nil { return fmt.Errorf("setting value in redis: %v", err) }