Last active
September 28, 2017 10:37
-
-
Save m-cakir/89ff5ab03d3999ebb24231c3f4f35c7d to your computer and use it in GitHub Desktop.
Medium post gist https://medium.com/@mcakir/spring-boot-redis-72c956612e3f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mcakir.bootiful.config; | |
| import org.springframework.boot.context.properties.ConfigurationProperties; | |
| import org.springframework.stereotype.Component; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| @Component | |
| @ConfigurationProperties("cache") | |
| public class CacheProperties { | |
| Map<String, Long> expirations = new HashMap<String, Long>(); | |
| public Map<String, Long> getExpirations() { | |
| return expirations; | |
| } | |
| public void setExpirations(Map<String, Long> expirations) { | |
| this.expirations = expirations; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment