MCPcopy Create free account
hub / github.com/dfinity/orbit / remove

Method remove

libs/orbit-essentials/src/repository.rs:104–106  ·  view source on GitHub ↗

Removes a record from the repository and returns it if it exists.

(&self, key: &Key)

Source from the content-addressed store, hash-verified

102
103 /// Removes a record from the repository and returns it if it exists.
104 fn remove(&self, key: &Key) -> Option<Value> {
105 Self::with_db(|db| db.remove(key))
106 }
107
108 /// Returns the number of records stored in the repository.
109 fn len(&self) -> usize {

Callers 7

remove_counter_vecMethod · 0.45
remove_counterMethod · 0.45
remove_gauge_vecMethod · 0.45
remove_gaugeMethod · 0.45
clear_timerFunction · 0.45
newMethod · 0.45
dropMethod · 0.45

Implementers 15

asset.rscore/station/impl/src/repositories/ass
notification.rscore/station/impl/src/repositories/not
user_group.rscore/station/impl/src/repositories/use
request_evaluation_result.rscore/station/impl/src/repositories/req
request_policy.rscore/station/impl/src/repositories/req
account.rscore/station/impl/src/repositories/acc
request.rscore/station/impl/src/repositories/req
user.rscore/station/impl/src/repositories/use
address_book.rscore/station/impl/src/repositories/add
named_rule.rscore/station/impl/src/repositories/nam
transfer.rscore/station/impl/src/repositories/tra
external_canister.rscore/station/impl/src/repositories/ext

Calls

no outgoing calls

Tested by

no test coverage detected