List of usage examples for org.springframework.data.redis.core ValueOperations set
void set(K key, V value);
From source file:com.caronic.data.redis.SampleRedisApplication.java
@Override public void run(String... args) throws Exception { ValueOperations<String, String> ops = template.opsForValue(); String key = "spring.boot.redis.test"; if (!template.hasKey(key)) { ops.set(key, "foo"); }/*w w w .ja v a2s . c o m*/ System.out.println("Found key " + key + ", value=" + ops.get(key)); }
From source file:com.easarrive.datasource.redis.etago.AbstractDaoByRedisTemplate.java
public void valueSet(K key, V bean) { ValueOperations<K, V> valueOperations = redisTemplate.opsForValue(); valueOperations.set(key, bean); }
From source file:com.company.project.service.dao.RedisDao.java
public void set(String key, Object value) { ValueOperations opsForValue = redisTemplate.opsForValue(); opsForValue.set(key, value); }
From source file:org.ednovo.gooru.service.ResourceCassandraServiceImpl.java
@Override public void putRedisValue(String key, String value) { ValueOperations<String, String> valueOperations = getValueOperation(); valueOperations.set(key, value); }