From 27b47ffe1456c03351289d8bf0ab65bf51b4717e Mon Sep 17 00:00:00 2001 From: Ruslan Gainutdinov Date: Wed, 30 Aug 2017 22:49:07 +0300 Subject: [PATCH] v. 0.6. Fixed problem with metricPrefix not added to some keys --- README.md | 2 +- pom.xml | 2 +- src/main/java/com/wizecore/metrics/PersistenceUtil.java | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index acbc403..4bd193b 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Maven repository is created using [jitpack.io](https://jitpack.io/) [![](https:/ com.wizecore persistent-metrics - 0.5 + 0.6 ``` diff --git a/pom.xml b/pom.xml index 0e16acd..a53e185 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.wizecore persistent-metrics jar - 0.5 + 0.6 persistent-metrics http://github.com/wizecore/persistent-metrics diff --git a/src/main/java/com/wizecore/metrics/PersistenceUtil.java b/src/main/java/com/wizecore/metrics/PersistenceUtil.java index c760d25..38cbb8e 100644 --- a/src/main/java/com/wizecore/metrics/PersistenceUtil.java +++ b/src/main/java/com/wizecore/metrics/PersistenceUtil.java @@ -177,20 +177,20 @@ public static RAtomicDouble createAtomicDouble(String name) { public static String getValue(String name) { init(); - RBucket b = redis.getBucket(name); + RBucket b = redis.getBucket(metricPrefix + name); return b.isExists() ? b.get() : null; } public static void setValue(String name, String value) { init(); - RBucket b = redis.getBucket(name); + RBucket b = redis.getBucket(metricPrefix + name); b.set(value); } public static RBucket getBucket(String name) { init(); - return redis.getBucket(name); + return redis.getBucket(metricPrefix + name); } public static String getRedisConfig() {