Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyResource ¶
ApplyResource applies specified type of resource which cached before.
func ReCacheResource ¶
func ReCacheResource(res interface{})
ReCacheResource caches bytes ByteCapsule
func SetCacheBytesListSize ¶
func SetCacheBytesListSize(size int)
SetCacheBytesListSize sets max size of each cache list.
func SetCacheResourceListSize ¶
func SetCacheResourceListSize(size int)
SetCacheResourceListSize sets max size of each cache list.
Types ¶
type ByteCapsule ¶
type ByteCapsule struct {
// contains filtered or unexported fields
}
ByteCapsule is small bytes container
func ApplyBytes ¶
func ApplyBytes(size int, dynamic bool) ByteCapsule
ApplyBytes applies specified size of bytes array. dynamic bytes apply will not be cached
func (*ByteCapsule) Bytes ¶
func (bc *ByteCapsule) Bytes() []byte
Bytes returns bytes array of ByteCapsule
Click to show internal directories.
Click to hide internal directories.