package com.nisemoe.nise

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cache.annotation.EnableCaching
import org.springframework.scheduling.annotation.EnableScheduling
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisIndexedHttpSession

@SpringBootApplication
@EnableCaching
@EnableScheduling
@EnableRedisIndexedHttpSession(maxInactiveIntervalInSeconds = 2592000)
class NiseApplication

fun main(args: Array<String>) {
	runApplication<NiseApplication>(*args)
}

@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
annotation class AllowCacheSerialization