Skip to content

Commit

Permalink
#393 补充JedisTemplate和JedisSharedTemplate的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin committed Sep 13, 2014
1 parent 3848557 commit f3d8434
Show file tree
Hide file tree
Showing 16 changed files with 765 additions and 181 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.Resource;
import org.springside.modules.nosql.redis.JedisTemplate.JedisAction;
import org.springside.modules.nosql.redis.pool.JedisPool;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.exceptions.JedisDataException;
import redis.clients.util.Pool;

/**
* 装载并执行Lua Script,
Expand All @@ -34,7 +34,7 @@ public class JedisScriptExecutor {
private String script;
private String sha1;

public JedisScriptExecutor(Pool<Jedis> jedisPool) {
public JedisScriptExecutor(JedisPool jedisPool) {
this.jedisTemplate = new JedisTemplate(jedisPool);
}

Expand Down
Loading

0 comments on commit f3d8434

Please sign in to comment.