Skip to content

Commit 27b47ff

Browse files
author
Ruslan Gainutdinov
committed
v. 0.6. Fixed problem with metricPrefix not added to some keys
1 parent b8027e3 commit 27b47ff

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Maven repository is created using [jitpack.io](https://jitpack.io/) [![](https:/
4444
<dependency>
4545
<groupId>com.wizecore</groupId>
4646
<artifactId>persistent-metrics</artifactId>
47-
<version>0.5</version>
47+
<version>0.6</version>
4848
</dependency>
4949
```
5050

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.wizecore</groupId>
55
<artifactId>persistent-metrics</artifactId>
66
<packaging>jar</packaging>
7-
<version>0.5</version>
7+
<version>0.6</version>
88
<name>persistent-metrics</name>
99
<url>http://github.com/wizecore/persistent-metrics</url>
1010

src/main/java/com/wizecore/metrics/PersistenceUtil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,20 +177,20 @@ public static RAtomicDouble createAtomicDouble(String name) {
177177

178178
public static String getValue(String name) {
179179
init();
180-
RBucket<String> b = redis.getBucket(name);
180+
RBucket<String> b = redis.getBucket(metricPrefix + name);
181181
return b.isExists() ? b.get() : null;
182182
}
183183

184184
public static void setValue(String name, String value) {
185185
init();
186-
RBucket<String> b = redis.getBucket(name);
186+
RBucket<String> b = redis.getBucket(metricPrefix + name);
187187
b.set(value);
188188
}
189189

190190

191191
public static RBucket<String> getBucket(String name) {
192192
init();
193-
return redis.getBucket(name);
193+
return redis.getBucket(metricPrefix + name);
194194
}
195195

196196
public static String getRedisConfig() {

0 commit comments

Comments
 (0)