diff --git a/app/rest/cache.go b/app/rest/cache.go index 992c4b24..c279fea0 100644 --- a/app/rest/cache.go +++ b/app/rest/cache.go @@ -17,6 +17,7 @@ type LoadingCache interface { Flush(scopes ...string) } +// CacheKey makes full key from primary key ans scopes func CacheKey(key string, scopes ...string) string { return strings.Join(scopes, "$$") + "@@" + key }