2021-12-03 04:15:48 +01:00
|
|
|
package cache
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type SetGetKey interface {
|
|
|
|
Set(key string, value interface{}, ttl time.Duration) error
|
|
|
|
Get(key string) (interface{}, bool)
|
2021-12-03 04:32:30 +01:00
|
|
|
Remove(key string)
|
2021-12-03 04:15:48 +01:00
|
|
|
}
|