wh/src/main/java/com/muyu/gateway/cache/abs/GatewayCacheAbs.java

31 lines
455 B
Java

package com.muyu.gateway.cache.abs;
import com.muyu.common.redis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
/**
* @Author: wanghao //作者
* @CreateDate: 2024/4/18 16:09 //创建时间
*/
public abstract class GatewayCacheAbs<K> {
@Autowired
public RedisService redisService;
public abstract String getPre();
public String encode(K key){
return getPre()+key;
}
}