package com.caliverse.admin.domain.datacomponent;
import com.caliverse.admin.domain.service.DynamoDBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
@EnableCaching
public class DynamoDBDataHandler {

    @Autowired
    private DynamoDBService dynamoDBService;

    /**
     * nickname에 대한 guid 정보 캐싱
     * @param nickname
     * @return guid
     */
    @Cacheable(value = "nickNameByGuidData", key = "#p0", unless = "#result == null")
    public String getNicknameByGuidData(String nickname) {

        return "";
    }
    
}

