aboutsummaryrefslogtreecommitdiff
path: root/subsonic-main/src/main/webapp/WEB-INF/applicationContext-cache.xml
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-main/src/main/webapp/WEB-INF/applicationContext-cache.xml')
-rw-r--r--subsonic-main/src/main/webapp/WEB-INF/applicationContext-cache.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/subsonic-main/src/main/webapp/WEB-INF/applicationContext-cache.xml b/subsonic-main/src/main/webapp/WEB-INF/applicationContext-cache.xml
new file mode 100644
index 00000000..a8692d08
--- /dev/null
+++ b/subsonic-main/src/main/webapp/WEB-INF/applicationContext-cache.xml
@@ -0,0 +1,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>