Package org.springframework.data.keyvalue.redis.connection.jredis

Examples of org.springframework.data.keyvalue.redis.connection.jredis.JredisConnectionFactory


    jsonPersonTemplate.setConnectionFactory(jedisConnFactory);
    jsonPersonTemplate.setValueSerializer(jsonSerializer);
    jsonPersonTemplate.afterPropertiesSet();

    // jredis
    JredisConnectionFactory jredisConnFactory = new JredisConnectionFactory();
    jredisConnFactory.setUsePool(true);

    jredisConnFactory.setPort(SettingsUtils.getPort());
    jredisConnFactory.setHostName(SettingsUtils.getHost());

    jredisConnFactory.afterPropertiesSet();

    RedisTemplate<String, String> stringTemplateJR = new StringRedisTemplate(jredisConnFactory);
    RedisTemplate<String, Person> personTemplateJR = new RedisTemplate<String, Person>();
    personTemplateJR.setConnectionFactory(jredisConnFactory);
    personTemplateJR.afterPropertiesSet();
View Full Code Here


    jsonPersonTemplate.setHashKeySerializer(jsonSerializer);
    jsonPersonTemplate.setHashValueSerializer(jsonStringSerializer);
    jsonPersonTemplate.afterPropertiesSet();

    // JRedis
    JredisConnectionFactory jredisConnFactory = new JredisConnectionFactory();
    jredisConnFactory.setUsePool(true);
    jredisConnFactory.setPort(SettingsUtils.getPort());
    jredisConnFactory.setHostName(SettingsUtils.getHost());
    jredisConnFactory.afterPropertiesSet();

    RedisTemplate<String, String> genericTemplateJR = new StringRedisTemplate(jredisConnFactory);
    RedisTemplate<String, Person> xGenericTemplateJR = new RedisTemplate<String, Person>();
    xGenericTemplateJR.setConnectionFactory(jredisConnFactory);
    xGenericTemplateJR.setDefaultSerializer(serializer);
View Full Code Here

    jedisConnFactory.setPort(SettingsUtils.getPort());
    jedisConnFactory.setHostName(SettingsUtils.getHost());
    jedisConnFactory.afterPropertiesSet();

    // jredis factory
    JredisConnectionFactory jredisConnFactory = new JredisConnectionFactory();
    jredisConnFactory.setUsePool(true);
    jredisConnFactory.setPort(SettingsUtils.getPort());
    jredisConnFactory.setHostName(SettingsUtils.getHost());
    jredisConnFactory.afterPropertiesSet();

    StringRedisTemplate templateJS = new StringRedisTemplate(jedisConnFactory);
    StringRedisTemplate templateJR = new StringRedisTemplate(jredisConnFactory);

    StringObjectFactory sof = new StringObjectFactory();
View Full Code Here

    jsonPersonTemplate.setHashKeySerializer(jsonSerializer);
    jsonPersonTemplate.setHashValueSerializer(jsonStringSerializer);
    jsonPersonTemplate.afterPropertiesSet();

    // JRedis
    JredisConnectionFactory jredisConnFactory = new JredisConnectionFactory();
    jredisConnFactory.setUsePool(true);
    jredisConnFactory.setPort(SettingsUtils.getPort());
    jredisConnFactory.setHostName(SettingsUtils.getHost());
    jredisConnFactory.afterPropertiesSet();

    RedisTemplate genericTemplateJR = new RedisTemplate();
    genericTemplateJR.setConnectionFactory(jredisConnFactory);
    genericTemplateJR.afterPropertiesSet();
View Full Code Here

TOP

Related Classes of org.springframework.data.keyvalue.redis.connection.jredis.JredisConnectionFactory

Copyright © 2018 www.massapicom. 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.