diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-12-19 10:16:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-19 10:16:22 -0500 |
commit | f96173528f08684092b89f903f0389fe2b607192 (patch) | |
tree | f34f9057417ad6758cd65dc246bc764530f2134c /einterfaces | |
parent | 6a5cdd5cdf09317ce259dd146fc4f1cb76d8b9b6 (diff) | |
download | chat-f96173528f08684092b89f903f0389fe2b607192.tar.gz chat-f96173528f08684092b89f903f0389fe2b607192.tar.bz2 chat-f96173528f08684092b89f903f0389fe2b607192.zip |
Adding metrics for caching mechanisms (#4828)
Diffstat (limited to 'einterfaces')
-rw-r--r-- | einterfaces/metrics.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/einterfaces/metrics.go b/einterfaces/metrics.go index 192639e02..c4ec9dccf 100644 --- a/einterfaces/metrics.go +++ b/einterfaces/metrics.go @@ -19,6 +19,12 @@ type MetricsInterface interface { IncrementLogin() IncrementLoginFail() + + IncrementEtagHitCounter(route string) + IncrementEtagMissCounter(route string) + + IncrementMemCacheHitCounter(cacheName string) + IncrementMemCacheMissCounter(cacheName string) } var theMetricsInterface MetricsInterface |