package com.ag.secp.platform.redis;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.jdbc.core.JdbcTemplate;

public class DataSourceTemplate {

    private JdbcTemplate jdbcTemplate;

    private RedisTemplate<String,Object> redisTemplate;

    JdbcTemplate getJdbcTemplate(){return jdbcTemplate;};

    RedisTemplate<String,Object> getRedisTemplate(){return redisTemplate;};

    public DataSourceTemplate(JdbcTemplate jdbcTemplate, RedisTemplate<String, Object> redisTemplate) {
        this.jdbcTemplate = jdbcTemplate;
        this.redisTemplate = redisTemplate;
    }
}