Files
EdgeNode/internal/caches/writer.go
2020-10-05 19:15:35 +08:00

23 lines
286 B
Go

package caches
// 缓存内容写入接口
type Writer interface {
// 写入数据
Write(data []byte) (n int, err error)
// 写入的总数据大小
Size() int64
// 关闭
Close() error
// 丢弃
Discard() error
// Key
Key() string
// 过期时间
ExpiredAt() int64
}