RedisCache extends AbstractRemoteCache { public void set(String key, byte[] value) { RBucket<byte[]> bucket = getClient().getBucket(key, ByteArrayCodec.INSTANCE); bucket.set(value); } RedisCache(); byte[] get(String key); void set(String key, byte[] value); void set(String key, byte[] value, int expireIn); void delete(String key); Lock acquireLock(String lockName); @Override CheckResult checkConnection();  }
@Test public void testSet() { RBucket<byte[]> bucket = client.getBucket("test", ByteArrayCodec.INSTANCE); assertNull(bucket.get()); cache.set("test", "abcd".getBytes()); assertArrayEquals("abcd".getBytes(), bucket.get()); }