(key string)
| 65 | } |
| 66 | |
| 67 | func (mc *MemConfig) ReadTimestamp(key string) (time.Time, error) { |
| 68 | value, err := mc.ReadString(key) |
| 69 | if err != nil { |
| 70 | return time.Time{}, err |
| 71 | } |
| 72 | |
| 73 | timestamp, err := strconv.Atoi(value) |
| 74 | if err != nil { |
| 75 | return time.Time{}, err |
| 76 | } |
| 77 | |
| 78 | return time.Unix(int64(timestamp), 0), nil |
| 79 | } |
| 80 | |
| 81 | // RemoveAll remove all key/value pair matching the key prefix |
| 82 | func (mc *MemConfig) RemoveAll(keyPrefix string) error { |
nothing calls this directly
no test coverage detected