diff --git a/src/main/java/org/prebid/cache/listners/AerospikeReadListener.java b/src/main/java/org/prebid/cache/listners/AerospikeReadListener.java index 75d294d..cd85783 100644 --- a/src/main/java/org/prebid/cache/listners/AerospikeReadListener.java +++ b/src/main/java/org/prebid/cache/listners/AerospikeReadListener.java @@ -11,7 +11,7 @@ @Slf4j public class AerospikeReadListener implements RecordListener { - private final static String NAME = "test"; + private final static String NAME = "cache"; private final MonoSink sink; private final String recordKeyId; diff --git a/src/main/java/org/prebid/cache/repository/aerospike/AerospikePropertyConfiguration.java b/src/main/java/org/prebid/cache/repository/aerospike/AerospikePropertyConfiguration.java index b9d1ae9..1c25810 100644 --- a/src/main/java/org/prebid/cache/repository/aerospike/AerospikePropertyConfiguration.java +++ b/src/main/java/org/prebid/cache/repository/aerospike/AerospikePropertyConfiguration.java @@ -37,7 +37,6 @@ public class AerospikePropertyConfiguration { private Long maxBackoff; private int maxRetry; private String namespace; - private String binName; private static final int DEFAULT_PORT = 3000; diff --git a/src/main/java/org/prebid/cache/repository/aerospike/AerospikeRepositoryImpl.java b/src/main/java/org/prebid/cache/repository/aerospike/AerospikeRepositoryImpl.java index 46b72a3..8d60421 100644 --- a/src/main/java/org/prebid/cache/repository/aerospike/AerospikeRepositoryImpl.java +++ b/src/main/java/org/prebid/cache/repository/aerospike/AerospikeRepositoryImpl.java @@ -38,6 +38,8 @@ public class AerospikeRepositoryImpl implements ReactiveRepositorycreate(sink -> client.put(eventLoops.next(), new AerospikeWriteListener(sink, normalizedId), policy, new Key(configuration.getNamespace(), "", normalizedId), - new Bin(configuration.getBinName(), Json.toJson(wrapper)))).map(payload -> wrapper) + new Bin(BIN_NAME, Json.toJson(wrapper)))).map(payload -> wrapper) .retryWhen(getRetryPolicy()); } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e752079..a679886 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -82,7 +82,6 @@ spring: max_backoff: 1000 max_retry: 3 namespace: "prebid_cache" - bin_name: "cache" #spring.redis.sentinel.master: mymaster #spring.redis.sentinel.nodes: localhost:26379