slyfox
Aug 21st, 2011, 03:04 PM
trying to simply get redis working with my spring project. I am connected to a redis to go instance.
When trying a simple:
redisTemplate.opsForValue().set("key", "val");
it is not updating the key and im getting this debug:
14:52:35 DEBUG [RedisConnectionUtils] Opening RedisConnection
14:52:35 DEBUG [RedisConnectionUtils] Closing Redis Connection
seems like the simplest use case:
<bean id="jedisConnectionFactory" class="org.springframework.data.redis.connection.jedis.Je disConnectionFactory"
p:host-name="angler.redistogo.com" p:port="9512"
p:password="************************"/>
<bean id="redisTemplate" class="org.springframework.data.redis.core.RedisTemplate"
p:connection-factory-ref="jedisConnectionFactory"/>
When trying a simple:
redisTemplate.opsForValue().set("key", "val");
it is not updating the key and im getting this debug:
14:52:35 DEBUG [RedisConnectionUtils] Opening RedisConnection
14:52:35 DEBUG [RedisConnectionUtils] Closing Redis Connection
seems like the simplest use case:
<bean id="jedisConnectionFactory" class="org.springframework.data.redis.connection.jedis.Je disConnectionFactory"
p:host-name="angler.redistogo.com" p:port="9512"
p:password="************************"/>
<bean id="redisTemplate" class="org.springframework.data.redis.core.RedisTemplate"
p:connection-factory-ref="jedisConnectionFactory"/>