Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 84e6b79

Browse files
authored
Merge pull request #157 from skyhit/support_redis_cache
support redis cache
2 parents eec8d81 + cf5130a commit 84e6b79

File tree

6 files changed

+693
-680
lines changed

6 files changed

+693
-680
lines changed

build-dependencies.xml

+666-660
Large diffs are not rendered by default.

build.xml

+5-1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@
209209
<copy file="${spell_check.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
210210
<copy file="${shared.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
211211
<copy file="${tcwebcommon.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
212+
<copy file="${tccache.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
213+
212214
<copy file="${topcoder_security_groups.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
213215
<copy file="${review_application_management.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
214216
<copy file="${project_payment_calculator.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
@@ -236,6 +238,8 @@
236238
<copy file="${commons-dbcp.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
237239
<copy file="${commons-discovery.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
238240
<copy file="${commons-pool.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
241+
<copy file="${commons-pool2.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
242+
<copy file="${jedis.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
239243
<copy file="${confluence-service-axis-client.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
240244
<copy file="${httpProxyPackage.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
241245
<copy file="${ifxjdbcx.jar}" todir="${ear_shared_libdir}" overwrite="true"/>
@@ -712,4 +716,4 @@
712716
some of the targets of this build file. -->
713717
<import file="${basedir}/build-override.xml" optional="true"/>
714718

715-
</project>
719+
</project>

conf/cache.properties

+22-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
cache.primary = @cache.primary@
2-
#cache.secondary = 63.118.154.182:8502
3-
4-
# allow at most 25000 items in the cache
5-
cache.size = 25000
6-
# sync every 10 seconds
7-
cache.synctime = 10000
8-
9-
# check every minute
10-
cache.expirecheck = 60000
11-
# expire after 10 hours
12-
cache.expiretime = 3600000
13-
14-
15-
host_url = @host_url@
16-
jndi_name = TCCache
17-
cache_admin_jndi_name = TCCacheAdmin
18-
cache_client_class=com.topcoder.web.common.cache.JbossCacheClient
19-
1+
cache.primary = @cache.primary@
2+
#cache.secondary = 63.118.154.182:8502
3+
4+
# allow at most 25000 items in the cache
5+
cache.size = 25000
6+
# sync every 10 seconds
7+
cache.synctime = 10000
8+
9+
# check every minute
10+
cache.expirecheck = 60000
11+
# expire after 10 hours
12+
cache.expiretime = 3600000
13+
14+
15+
host_url = @host_url@
16+
jndi_name = TCCache
17+
cache_admin_jndi_name = TCCacheAdmin
18+
19+
cache_client_class=@cache_client_class@
20+
21+
redis.uri=@redis_uri@
22+
redis.timeout=2000

lib/tcs/tcwebcommon.jar

-16.9 KB
Binary file not shown.
Binary file not shown.

lib/third_party/jedis/jedis-2.8.1.jar

526 KB
Binary file not shown.

0 commit comments

Comments
 (0)