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() {