MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / keysIdentify

Function keysIdentify

structure/hash.go:1267–1269  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1265//
1266// bool: True if the key has the identifier suffix, false otherwise.
1267func 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.

Callers 2

KeysMethod · 0.85
GetFieldsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected