package com.zhentao.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class RecommendProps {

    @Value("${recommend.cache.enabled:true}")
    private boolean cacheEnabled;

    @Value("${recommend.cache.ttl-seconds:600}")
    private int cacheTtlSeconds;

    @Value("${recommend.rank.mmr-lambda:0.7}")
    private double mmrLambda;

    public boolean isCacheEnabled() {
        return cacheEnabled;
    }

    public int getCacheTtlSeconds() {
        return cacheTtlSeconds;
    }

    public double getMmrLambda() {
        return mmrLambda;
    }
}


