File size: 246 Bytes
83a59ca
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
package cache

import (
	"context"
	"time"
)

// Cache stores items temporarily
type Cache interface {
	Set(ctx context.Context, key string, value string, ttl time.Duration) error
	Get(ctx context.Context, key string) (value string, err error)
}