Get the value information for the key from db
()
| 57 | |
| 58 | // Get the value information for the key from db |
| 59 | func (s *String) Get() ([]byte, error) { |
| 60 | if !s.Exist() { |
| 61 | return nil, ErrKeyNotFound |
| 62 | } |
| 63 | return s.Meta.Value, nil |
| 64 | } |
| 65 | |
| 66 | // Set set the string value of a key |
| 67 | // the num of expire slice is not zero and expire[0] is not zero ,the key add exprie queue |