Documentation
¶
Index ¶
- type KVCacheAligner
- func (a *KVCacheAligner) AnalyzePrefix(messages []string) map[string]interface{}
- func (a *KVCacheAligner) CheckCache(content string) bool
- func (a *KVCacheAligner) Fingerprint(content string) string
- func (a *KVCacheAligner) HitRate() float64
- func (a *KVCacheAligner) OptimizeMessageOrder(messages []string) []string
- func (a *KVCacheAligner) Stats() map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVCacheAligner ¶
type KVCacheAligner struct {
// contains filtered or unexported fields
}
func NewKVCacheAligner ¶
func NewKVCacheAligner() *KVCacheAligner
func (*KVCacheAligner) AnalyzePrefix ¶
func (a *KVCacheAligner) AnalyzePrefix(messages []string) map[string]interface{}
func (*KVCacheAligner) CheckCache ¶
func (a *KVCacheAligner) CheckCache(content string) bool
func (*KVCacheAligner) Fingerprint ¶
func (a *KVCacheAligner) Fingerprint(content string) string
func (*KVCacheAligner) HitRate ¶
func (a *KVCacheAligner) HitRate() float64
func (*KVCacheAligner) OptimizeMessageOrder ¶
func (a *KVCacheAligner) OptimizeMessageOrder(messages []string) []string
func (*KVCacheAligner) Stats ¶
func (a *KVCacheAligner) Stats() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.