-
Notifications
You must be signed in to change notification settings - Fork 2
/
BaseStorage.java
48 lines (36 loc) · 1.23 KB
/
BaseStorage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.fynd.extension.storage;
import lombok.NoArgsConstructor;
import org.springframework.util.StringUtils;
import java.util.Map;
@NoArgsConstructor
public abstract class BaseStorage {
String prefixKey;
public BaseStorage(String prefixKey) {
if (!StringUtils.isEmpty(prefixKey)) {
this.prefixKey = prefixKey + ":";
} else {
this.prefixKey = "";
}
}
public String get(String key) {
throw new RuntimeException("Method not implemented");
}
public String set(String key, String value) {
throw new RuntimeException("Method not implemented");
}
public Object del(String key) {
throw new RuntimeException("Method not implemented");
}
public String setex(String key, int ttl, String value) {
throw new RuntimeException("Method not implemented");
}
public String hget(String key, String hashKey) {
throw new RuntimeException("Method not implemented");
}
public Object hset(String key, String hashKey, String value) {
throw new RuntimeException("Method not implemented");
}
public Map<String, Object> hgetall(String key) {
throw new RuntimeException("Method not implemented");
}
}