Documentation ¶
Index ¶
- Constants
- func Copy(dst io.Writer, src io.Reader) (err error)
- func GetBuffer() *bytes.Buffer
- func GetBytes(size int) []byte
- func GetScheme(ur string) (scheme, etc string, err error)
- func PutBuffer(b *bytes.Buffer)
- func PutBytes(b []byte)
- func Relay(local, remote io.ReadWriter)
- type Cache
- type LRU
- type Option
- type Pool
- type Unit
Constants ¶
View Source
const DefaultSize = 16 * 0x400
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache use map save history
type LRU ¶
type LRU[K comparable, V any] struct { // contains filtered or unexported fields }
LRU Least Recently Used
func (*LRU[K, V]) ValueExist ¶
Click to show internal directories.
Click to hide internal directories.