Java Code Examples for org.jeecg.common.constant.CacheConstant#TEST_DEMO_CACHE

The following examples show how to use org.jeecg.common.constant.CacheConstant#TEST_DEMO_CACHE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JeecgDemoServiceImpl.java    From jeecg-cloud with Apache License 2.0 5 votes vote down vote up
/**
 * 缓存注解测试: redis
 */
@Override
@Cacheable(cacheNames = CacheConstant.TEST_DEMO_CACHE, key = "#id")
public JeecgDemo getByIdCacheable(String id) {
	JeecgDemo t = jeecgDemoMapper.selectById(id);
	System.err.println("---未读缓存,读取数据库---");
	System.err.println(t);
	return t;
}
 
Example 2
Source File: JeecgDemoServiceImpl.java    From jeecg-boot-with-activiti with MIT License 5 votes vote down vote up
/**
 * 缓存注解测试: redis
 */
@Override
@Cacheable(cacheNames = CacheConstant.TEST_DEMO_CACHE, key = "#id")
public JeecgDemo getByIdCacheable(String id) {
	JeecgDemo t = jeecgDemoMapper.selectById(id);
	System.err.println("---未读缓存,读取数据库---");
	System.err.println(t);
	return t;
}
 
Example 3
Source File: JeecgDemoServiceImpl.java    From teaching with Apache License 2.0 5 votes vote down vote up
/**
 * 缓存注解测试: redis
 */
@Override
@Cacheable(cacheNames = CacheConstant.TEST_DEMO_CACHE, key = "#id")
public JeecgDemo getByIdCacheable(String id) {
	JeecgDemo t = jeecgDemoMapper.selectById(id);
	System.err.println("---未读缓存,读取数据库---");
	System.err.println(t);
	return t;
}
 
Example 4
Source File: JeecgDemoServiceImpl.java    From jeecg-boot with Apache License 2.0 5 votes vote down vote up
/**
 * 缓存注解测试: redis
 */
@Override
@Cacheable(cacheNames = CacheConstant.TEST_DEMO_CACHE, key = "#id")
public JeecgDemo getByIdCacheable(String id) {
	JeecgDemo t = jeecgDemoMapper.selectById(id);
	System.err.println("---未读缓存,读取数据库---");
	System.err.println(t);
	return t;
}