RedissonCache.getLockName minor optimization

pull/537/head
Nikita 9 years ago
parent 69f90ff8f3
commit e6ccd7f3eb

@ -167,7 +167,6 @@ public class RedissonCache implements Cache {
private String getLockName(Object key) {
try {
byte[] keyState = redisson.getConfig().getCodec().getMapKeyEncoder().encode(key);
Hash.hashToBase64(keyState);
return "{" + map.getName() + "}:" + Hash.hashToBase64(keyState) + ":key";
} catch (IOException e) {
throw new IllegalStateException(e);

Loading…
Cancel
Save