cache

package
v1.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteSlice

func ByteSlice(value []byte) []byte

func NewLRUCache

func NewLRUCache(maxCount int) *lruCache

func RegisterCacheMetrics

func RegisterCacheMetrics(m metrics.Registry)

func String

func String(str string) string

func StringForByteSliceCopy added in v1.9.3

func StringForByteSliceCopy(value []byte) string

func StringForByteSliceNoCopy added in v1.8.2

func StringForByteSliceNoCopy(value []byte) string

Types

type CachingProtocol

type CachingProtocol struct {
	*thrift.TBinaryProtocol
	// contains filtered or unexported fields
}

func NewProtocol

func NewProtocol(p *thrift.TBinaryProtocol) *CachingProtocol

func (*CachingProtocol) ReadBinary

func (p *CachingProtocol) ReadBinary() ([]byte, error)

func (*CachingProtocol) ReadString

func (p *CachingProtocol) ReadString() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL