kratos: github.com/bilibili/kratos/pkg/cache Index | Files | Directories

package cache

import "github.com/bilibili/kratos/pkg/cache"

Index

Package Files

metrics.go

Variables

var (
    MetricHits = metric.NewCounterVec(&metric.CounterVecOpts{
        Namespace: _metricNamespace,
        Subsystem: "",
        Name:      "hits_total",
        Help:      "cache hits total.",
        Labels:    []string{"name"},
    })
    MetricMisses = metric.NewCounterVec(&metric.CounterVecOpts{
        Namespace: _metricNamespace,
        Subsystem: "",
        Name:      "misses_total",
        Help:      "cache misses total.",
        Labels:    []string{"name"},
    })
)

be used in tool/kratos-gen-bts

Directories

PathSynopsis
memcache
memcache/testPackage proto is a generated protocol buffer package.
redisPackage redis is a client for the Redis database.

Package cache imports 1 packages (graph). Updated 2019-10-31. Refresh now. Tools for package owners.