Skip to content

Commit

Permalink
v. 0.6. Fixed problem with metricPrefix not added to some keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Gainutdinov committed Aug 30, 2017
1 parent b8027e3 commit 27b47ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Maven repository is created using [jitpack.io](https://jitpack.io/) [![](https:/
<dependency>
<groupId>com.wizecore</groupId>
<artifactId>persistent-metrics</artifactId>
<version>0.5</version>
<version>0.6</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.wizecore</groupId>
<artifactId>persistent-metrics</artifactId>
<packaging>jar</packaging>
<version>0.5</version>
<version>0.6</version>
<name>persistent-metrics</name>
<url>http://github.com/wizecore/persistent-metrics</url>

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/wizecore/metrics/PersistenceUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,20 +177,20 @@ public static RAtomicDouble createAtomicDouble(String name) {

public static String getValue(String name) {
init();
RBucket<String> b = redis.getBucket(name);
RBucket<String> b = redis.getBucket(metricPrefix + name);
return b.isExists() ? b.get() : null;
}

public static void setValue(String name, String value) {
init();
RBucket<String> b = redis.getBucket(name);
RBucket<String> b = redis.getBucket(metricPrefix + name);
b.set(value);
}


public static RBucket<String> getBucket(String name) {
init();
return redis.getBucket(name);
return redis.getBucket(metricPrefix + name);
}

public static String getRedisConfig() {
Expand Down

0 comments on commit 27b47ff

Please sign in to comment.