public final Promise set ( String key , byte [ ] value , SetArgs args ) { byte [ ] binaryKey = key . getBytes ( StandardCharsets . UTF_8 ) ; if ( client != null ) { if ( args == null ) { return new Promise ( client . set ( binaryKey , value ) ) ; } return new Promise ( client . set ( binaryKey , value , args ) ) ; } if ( clusteredClient != null ) { if ( args == null ) { return new Promise ( clusteredClient . set ( binaryKey , value ) ) ; } return new Promise ( clusteredClient . set ( binaryKey , value , args ) ) ; } return Promise . resolve ( ) ; }
Sets a content by key .