SetUint64 is used to set Uint64 value for `key`
(key []byte, val uint64)
| 132 | |
| 133 | // SetUint64 is used to set Uint64 value for `key` |
| 134 | func (fds *FlyDbStore) SetUint64(key []byte, val uint64) error { |
| 135 | if len(key) == 0 { |
| 136 | return _const.ErrKeyIsEmpty |
| 137 | } |
| 138 | err := fds.conn.Put(key, uint64ToBytes(val)) |
| 139 | if err != nil { |
| 140 | return err |
| 141 | } |
| 142 | return nil |
| 143 | } |
| 144 | |
| 145 | // GetUint64 is used to retrieve the Uint64 value of `key` |
| 146 | func (fds *FlyDbStore) GetUint64(key []byte) (uint64, error) { |
nothing calls this directly
no test coverage detected