keysIdentify checks if the key has the identifier suffix Parameters: key: The key to check. Returns: bool: True if the key has the identifier suffix, false otherwise.
(key []byte)
| 1265 | // |
| 1266 | // bool: True if the key has the identifier suffix, false otherwise. |
| 1267 | func keysIdentify(key []byte) bool { |
| 1268 | return bytes.HasSuffix(key, []byte("notk")) |
| 1269 | } |
| 1270 | |
| 1271 | // TTL returns the time-to-live (TTL) of a key in the hash. |
| 1272 | // It takes a string key 'k' and returns the remaining TTL in seconds and any possible error. |