package com.junmp.jyzb.cache;

import com.junmp.jyzb.api.constant.JYZBConstant;
import com.junmp.v2.cache.AbstractRedisCache;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class InventoryRedisCache extends AbstractRedisCache<Object> {
    public InventoryRedisCache(RedisTemplate<String, Object> redisTemplate) {
        super(redisTemplate);
    }

    @Override
    public String getCommonKeyPrefix() {
        return JYZBConstant.JYZB_TEMP_PREFIX;
    }

//    public void addInventoryInfo(){
//        getRedisTemplate().opsForZSet().add(key, data, timestamp);
//        put(key, data);
//    }
//
//    public List<Object> getInventoryInfo(){
//
//        return new List<>(Object) ;
//    }
}
