GetUint64 is used to retrieve the Uint64 value of `key`
(key []byte)
| 144 | |
| 145 | // GetUint64 is used to retrieve the Uint64 value of `key` |
| 146 | func (fds *FlyDbStore) GetUint64(key []byte) (uint64, error) { |
| 147 | if len(key) == 0 { |
| 148 | return 0, _const.ErrKeyIsEmpty |
| 149 | } |
| 150 | val, err := fds.conn.Get(key) |
| 151 | if err != nil { |
| 152 | return 0, err |
| 153 | } |
| 154 | return bytesToUint64(val), nil |
| 155 | } |
| 156 | |
| 157 | // min is a helper method on FlyDbStore that returns the smallest index in the log |
| 158 | func (fds *FlyDbStore) min() uint64 { |
nothing calls this directly
no test coverage detected