+ eliminate API tangle by using interfaces rather then concrete classes
This commit is contained in:
@@ -34,9 +34,9 @@ class DefaultBoundHashOperations<H, HK, HV> extends DefaultKeyBound<H> implement
|
||||
* @param key
|
||||
* @param template
|
||||
*/
|
||||
public DefaultBoundHashOperations(H key, RedisTemplate<H, ?> template) {
|
||||
public DefaultBoundHashOperations(H key, RedisOperations<H, ?> operations) {
|
||||
super(key);
|
||||
this.ops = template.hashOps();
|
||||
this.ops = operations.hashOps();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -32,11 +32,11 @@ class DefaultBoundListOperations<K, V> extends DefaultKeyBound<K> implements Bou
|
||||
* Constructs a new <code>DefaultBoundListOperations</code> instance.
|
||||
*
|
||||
* @param key
|
||||
* @param template
|
||||
* @param operations
|
||||
*/
|
||||
public DefaultBoundListOperations(K key, RedisTemplate<K, V> template) {
|
||||
public DefaultBoundListOperations(K key, RedisOperations<K, V> operations) {
|
||||
super(key);
|
||||
this.ops = template.listOps();
|
||||
this.ops = operations.listOps();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -33,11 +33,11 @@ class DefaultBoundSetOperations<K, V> extends DefaultKeyBound<K> implements Boun
|
||||
* Constructs a new <code>DefaultBoundSetOperations</code> instance.
|
||||
*
|
||||
* @param key
|
||||
* @param template
|
||||
* @param operations
|
||||
*/
|
||||
DefaultBoundSetOperations(K key, RedisTemplate<K, V> template) {
|
||||
DefaultBoundSetOperations(K key, RedisOperations<K, V> operations) {
|
||||
super(key);
|
||||
this.ops = template.setOps();
|
||||
this.ops = operations.setOps();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -28,11 +28,11 @@ class DefaultBoundValueOperations<K, V> extends DefaultKeyBound<K> implements Bo
|
||||
* Constructs a new <code>DefaultBoundValueOperations</code> instance.
|
||||
*
|
||||
* @param key
|
||||
* @param template
|
||||
* @param operations
|
||||
*/
|
||||
public DefaultBoundValueOperations(K key, RedisTemplate<K, V> template) {
|
||||
public DefaultBoundValueOperations(K key, RedisOperations<K, V> operations) {
|
||||
super(key);
|
||||
this.ops = template.valueOps();
|
||||
this.ops = operations.valueOps();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -32,11 +32,11 @@ class DefaultBoundZSetOperations<K, V> extends DefaultKeyBound<K> implements Bou
|
||||
* Constructs a new <code>DefaultBoundZSetOperations</code> instance.
|
||||
*
|
||||
* @param key
|
||||
* @param template
|
||||
* @param oeprations
|
||||
*/
|
||||
public DefaultBoundZSetOperations(K key, RedisTemplate<K, V> template) {
|
||||
public DefaultBoundZSetOperations(K key, RedisOperations<K, V> oeprations) {
|
||||
super(key);
|
||||
this.ops = template.zSetOps();
|
||||
this.ops = oeprations.zSetOps();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user