package cn.wisenergy.shiro.util.redis;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;

/**
 * @description:
 * @author: nh
 * @create: 2021-04-05 18:17
 **/
public class RedisCacheManager implements CacheManager {
    @Override
    public <K, V> Cache<K, V> getCache(String cacheName) throws CacheException {
        return new  RedisCache<K,V>(cacheName);
    }
}
