首页 > 代码库 > 测试使用word2010发布博客

测试使用word2010发布博客

package com.wmfxly.base.cache;

?

import com.alisoft.xplatform.asf.cache.ICacheManager;

import com.alisoft.xplatform.asf.cache.IMemcachedCache;

import com.alisoft.xplatform.asf.cache.memcached.CacheUtil;

import com.alisoft.xplatform.asf.cache.memcached.MemcachedCacheManager;

?

?

public class MemCacheMgr {

?

????private String classPathCfgLocation;

????private static ICacheManager<IMemcachedCache> manager;

?

????public synchronized void init() {

????????manager = CacheUtil.getCacheManager(IMemcachedCache.class,

????????????????MemcachedCacheManager.class.getName());

????????manager.setConfigFile(classPathCfgLocation);

????????manager.start();

????}

?

public synchronized void destroy(){

manager.stop();

}

?

????//getter and setter

????public String getClassPathCfgLocation() {

????????return classPathCfgLocation;

????}

?

????public void setClassPathCfgLocation(String classPathCfgLocation) {

????????classPathCfgLocation = classPathCfgLocation;

????}

?

????public ICacheManager<IMemcachedCache> getManager() {

????????return manager;

????}

?

????public void setManager(ICacheManager<IMemcachedCache> manager) {

????????manager = manager;

????}

????

????

}

测试使用word2010发布博客