- 所有已实现的接口:
- WxAccessTokenStore
public class RedisAccessTokenStore
extends Object
implements WxAccessTokenStore
中央缓存access_token 底层为redis的实现 需要引入jedis客户端支持 参考IOC配置: customerRedisTokenStore
: { type : "org.nutz.weixin.at.impl.RedisTokenStore", fields : { tokenKey :
'customer_token', jedisPool : { refer : 'jedisPool' } } }, jedisPool : { type
: "redis.clients.jedis.JedisPool", args : [{refer : 'poolConfig'},
'127.0.0.1', 6379] } }, poolConfig : { type :
"org.apache.commons.pool2.impl.GenericObjectPoolConfig", fields : {
testWhileIdle : false, maxTotal : 200, maxIdle : 10, maxWaitMillis : 10000,
testOnBorrow : true, testOnReturn : true } }
- 作者:
- JiangKun