• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alibaba / jetcache / #405

16 Apr 2024 05:58AM UTC coverage: 0.0% (-88.9%) from 88.866%
#405

push

areyouok
add encoding to fix coverage report

0 of 5353 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/jetcache-support/jetcache-redis/src/main/java/com/alicp/jetcache/redis/RedisCacheConfig.java
1
package com.alicp.jetcache.redis;
2

3
import com.alicp.jetcache.external.ExternalCacheConfig;
4
import redis.clients.jedis.Jedis;
5
import redis.clients.jedis.UnifiedJedis;
6
import redis.clients.jedis.util.Pool;
7

8
/**
9
 * Created on 2016/10/7.
10
 *
11
 * @author huangli
12
 */
13
public class RedisCacheConfig<K, V> extends ExternalCacheConfig<K, V> {
×
14

15
    private Pool<Jedis> jedisPool;
16
    private Pool<Jedis>[] jedisSlavePools;
17
    private UnifiedJedis jedis;
18
    private UnifiedJedis[] slaves;
19
    private boolean readFromSlave;
20
    private int[] slaveReadWeights;
21

22
    public Pool<Jedis> getJedisPool() {
23
        return jedisPool;
×
24
    }
25

26
    public void setJedisPool(Pool<Jedis> jedisPool) {
27
        this.jedisPool = jedisPool;
×
28
    }
×
29

30
    public Pool<Jedis>[] getJedisSlavePools() {
31
        return jedisSlavePools;
×
32
    }
33

34
    public void setJedisSlavePools(Pool<Jedis>... jedisSlavePools) {
35
        this.jedisSlavePools = jedisSlavePools;
×
36
    }
×
37

38
    public UnifiedJedis getJedis() {
39
        return jedis;
×
40
    }
41

42
    public void setJedis(UnifiedJedis jedis) {
43
        this.jedis = jedis;
×
44
    }
×
45

46
    public UnifiedJedis[] getSlaves() {
47
        return slaves;
×
48
    }
49

50
    public void setSlaves(UnifiedJedis[] slaves) {
51
        this.slaves = slaves;
×
52
    }
×
53

54
    public boolean isReadFromSlave() {
55
        return readFromSlave;
×
56
    }
57

58
    public void setReadFromSlave(boolean readFromSlave) {
59
        this.readFromSlave = readFromSlave;
×
60
    }
×
61

62
    public int[] getSlaveReadWeights() {
63
        return slaveReadWeights;
×
64
    }
65

66
    public void setSlaveReadWeights(int... slaveReadWeights) {
67
        this.slaveReadWeights = slaveReadWeights;
×
68
    }
×
69
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc