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

Method init_cache

core/station/impl/src/services/system.rs:509–515  ·  view source on GitHub ↗

Initializes the cache of the canister data. Must only be called within a canister init or post_upgrade call.

(&self)

Source from the content-addressed store, hash-verified

507 ///
508 /// Must only be called within a canister init or post_upgrade call.
509 fn init_cache(&self) {
510 USER_GROUP_REPOSITORY.build_cache();
511 USER_REPOSITORY.build_cache();
512 PERMISSION_REPOSITORY.build_cache();
513 ASSET_REPOSITORY.build_cache();
514 NAMED_RULE_REPOSITORY.build_cache();
515 }
516
517 /// Initializes the canister with the given owners and settings.
518 ///

Callers 2

init_canisterMethod · 0.80
upgrade_canisterMethod · 0.80

Calls 1

build_cacheMethod · 0.45

Tested by

no test coverage detected