13 lines
262 B
Go
13 lines
262 B
Go
package ports
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
// UpdateCache defines cache operations for update service
|
|
type UpdateCache interface {
|
|
GetUpdateInfo(ctx context.Context) (string, error)
|
|
SetUpdateInfo(ctx context.Context, data string, ttl time.Duration) error
|
|
}
|