Package org.springframework.data.redis.core

Examples of org.springframework.data.redis.core.StringRedisTemplate.afterPropertiesSet()


  }

  @Test
  public void testDefaultPayloadSerializer() throws Exception {
    StringRedisTemplate template = new StringRedisTemplate(connectionFactory);
    template.afterPropertiesSet();

    adapter.afterPropertiesSet();
    adapter.handleMessage(new GenericMessage<String>("message1"));
    assertEquals("message1", template.boundListOps(QUEUE_NAME).rightPop());
  }
View Full Code Here


    jackson2JsonPersonTemplateSrp.setHashValueSerializer(jackson2JsonStringSerializer);
    jackson2JsonPersonTemplateSrp.afterPropertiesSet();

    RedisTemplate<String, String> stringTemplateSrp = new StringRedisTemplate();
    stringTemplateSrp.setConnectionFactory(srpConnFactory);
    stringTemplateSrp.afterPropertiesSet();

    RedisTemplate<String, byte[]> rawTemplateSrp = new RedisTemplate<String, byte[]>();
    rawTemplateSrp.setEnableDefaultSerializer(false);
    rawTemplateSrp.setConnectionFactory(srpConnFactory);
    rawTemplateSrp.setKeySerializer(stringSerializer);
View Full Code Here

    jackson2JsonPersonTemplateLettuce.setHashValueSerializer(jackson2JsonStringSerializer);
    jackson2JsonPersonTemplateLettuce.afterPropertiesSet();

    RedisTemplate<String, String> stringTemplateLtc = new StringRedisTemplate();
    stringTemplateLtc.setConnectionFactory(lettuceConnFactory);
    stringTemplateLtc.afterPropertiesSet();

    RedisTemplate<String, byte[]> rawTemplateLtc = new RedisTemplate<String, byte[]>();
    rawTemplateLtc.setEnableDefaultSerializer(false);
    rawTemplateLtc.setConnectionFactory(lettuceConnFactory);
    rawTemplateLtc.setKeySerializer(stringSerializer);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.