| | |
| | | private Cache createMap(String name, CacheConfig config) { |
| | | RMap<Object, Object> map = RedisUtils.getClient().getMap(name); |
| | | |
| | | Cache cache = new RedissonCache(map, allowNullValues); |
| | | Cache cache = new CaffeineCacheDecorator(name, new RedissonCache(map, allowNullValues)); |
| | | if (transactionAware) { |
| | | cache = new TransactionAwareCacheDecorator(cache); |
| | | } |
| | |
| | | private Cache createMapCache(String name, CacheConfig config) { |
| | | RMapCache<Object, Object> map = RedisUtils.getClient().getMapCache(name); |
| | | |
| | | Cache cache = new RedissonCache(map, config, allowNullValues); |
| | | Cache cache = new CaffeineCacheDecorator(name, new RedissonCache(map, config, allowNullValues)); |
| | | if (transactionAware) { |
| | | cache = new TransactionAwareCacheDecorator(cache); |
| | | } |