package
import ;
import ;
import ;
import org.;
import org.;
import ;
import ;
import ;
public class MybatisRedisCache implements Cache {
private static Logger logger = (MybatisRedisCache.class);
private Jedis redisClient=createReids();
private final ReadWriteLock readWriteLock = new ReentrantReadWriteLock();
private String id;
public MybatisRedisCache(final String id) {
if (id == null) {
throw new IllegalArgumentException("Cache instances require an ID");
}
(">>>>>>>>>>>>>>>>>>>>>>>>MybatisRedisCache:margin:0px; padding:0px; border:none; background-color:inherit">+id);
this.id = id;
}
@Override
public String getId() {
return this.id;
}
@Override
public int getSize() {
return (().toString());
}
@Override
public void putObject(Object key, Object value) {
(">>>>>>>>>>>>>>>>>>>>>>>>putObject:"+key+"="+value);
((()), (value));
}
@Override
public Object getObject(Object key) {
Object value = (((())));
(">>>>>>>>>>>>>>>>>>>>>>>>getObject:"+key+"="+value);
return value;
}
@Override
public Object removeObject(Object key) {
return ((()),0);
}
@Override
public void clear() {
();
}
@Override
public ReadWriteLock getReadWriteLock() {
return readWriteLock;
}
protected static Jedis createReids(){
JedisPool pool = new JedisPool(new JedisPoolConfig(), "10.12.162.85");
return ();
}