All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nicklaus4.memcached.config.MemcachedPoolConditional Maven / Gradle / Ivy

The newest version!
package com.github.nicklaus4.memcached.config;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * jedis conditional
 *
 * @author weishibai
 * @date 2019/03/20 10:54 AM
 */
public class MemcachedPoolConditional implements Condition {

    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        return Boolean.valueOf(context.getEnvironment().getProperty("memcached-pool-enabled"));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy