Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/java/net/spy/memcached/ArcusClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,10 @@ private void validateMKey(String mkey) {
}
}

public Transcoder<Object> getCollectionTranscoder() {
return collectionTranscoder;
}

public <T> AsyncArcusCommands<T> asyncCommands() {
return new AsyncArcusCommands<>(() -> this);
}
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/net/spy/memcached/v2/AsyncArcusCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@
public class AsyncArcusCommands<T> {

private final Transcoder<T> tc;
private final Transcoder<T> tcForCollection;

private final Supplier<ArcusClient> arcusClientSupplier;

@SuppressWarnings("unchecked")
public AsyncArcusCommands(Supplier<ArcusClient> arcusClientSupplier) {
this.tc = new GenericTranscoder<>();
this.tc = (Transcoder<T>) arcusClientSupplier.get().getTranscoder();
this.tcForCollection = (Transcoder<T>) arcusClientSupplier.get().getCollectionTranscoder();
this.arcusClientSupplier = arcusClientSupplier;
}

Expand Down
132 changes: 0 additions & 132 deletions src/main/java/net/spy/memcached/v2/GenericTranscoder.java

This file was deleted.