File tree Expand file tree Collapse file tree
src/main/java/net/spy/memcached Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -465,6 +465,10 @@ private void validateMKey(String mkey) {
465465 }
466466 }
467467
468+ public Transcoder <Object > getCollectionTranscoder () {
469+ return collectionTranscoder ;
470+ }
471+
468472 public <T > AsyncArcusCommands <T > asyncCommands () {
469473 return new AsyncArcusCommands <>(() -> this );
470474 }
Original file line number Diff line number Diff line change 2525public class AsyncArcusCommands <T > {
2626
2727 private final Transcoder <T > tc ;
28+ private final Transcoder <T > tcForCollection ;
2829
2930 private final Supplier <ArcusClient > arcusClientSupplier ;
3031
32+ @ SuppressWarnings ("unchecked" )
3133 public AsyncArcusCommands (Supplier <ArcusClient > arcusClientSupplier ) {
32- this .tc = new GenericTranscoder <>();
34+ this .tc = (Transcoder <T >) arcusClientSupplier .get ().getTranscoder ();
35+ this .tcForCollection = (Transcoder <T >) arcusClientSupplier .get ().getCollectionTranscoder ();
3336 this .arcusClientSupplier = arcusClientSupplier ;
3437 }
3538
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments