Add removeKey() and deleteKey() helpers across keyed modules (eleventh pass).
Domain-aware removal aliases on modules with hasKey/getKey, including async indexes and no-op cases for grow-only and bloom filters. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -683,6 +683,14 @@ class HyperP2PSemanticVectorIndex extends EventEmitter {
|
||||
getKey (key) {
|
||||
return this.getVector(key)
|
||||
}
|
||||
|
||||
async removeKey (key) {
|
||||
return this.remove(key)
|
||||
}
|
||||
|
||||
async deleteKey (key) {
|
||||
return this.removeKey(key)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HyperP2PSemanticVectorIndex
|
||||
|
||||
Reference in New Issue
Block a user