aboutsummaryrefslogtreecommitdiff
path: root/subsonic-main/src/main/webapp/WEB-INF/applicationContext-cache.xml
blob: a8692d0888be85b2495b290cdcda9d0392d99b0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="ISO-8859-1"?>

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">


    <bean id="cacheFactory" class="net.sourceforge.subsonic.cache.CacheFactory"/>

    <bean id="userCache" factory-bean="cacheFactory" factory-method="getCache">
        <constructor-arg value="userCache"/>
    </bean>

    <bean id="mediaFileMemoryCache" factory-bean="cacheFactory" factory-method="getCache">
        <constructor-arg value="mediaFileMemoryCache"/>
    </bean>

    <bean id="musicFileMemoryCache" factory-bean="cacheFactory" factory-method="getCache">
        <constructor-arg value="musicFileMemoryCache"/>
    </bean>

</beans>