| // Copyright 2022 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| { | |
| include: [ "syslog/client.shard.cml" ], | |
| program: { | |
| runner: "elf", | |
| binary: "bin/cache_manager", | |
| }, | |
| use: [ | |
| { | |
| protocol: [ | |
| "fuchsia.metrics.MetricEventLoggerFactory", | |
| "fuchsia.sys2.StorageAdmin", | |
| ], | |
| }, | |
| { | |
| // The threshold of storage utilization at which point cache is cleared. | |
| // Must not be greater than 100. | |
| config: "fuchsia.sys.CacheClearingThreshold", | |
| key: "cache_clearing_threshold", | |
| type: "uint64", | |
| availability: "optional", | |
| default: 95, | |
| }, | |
| { | |
| // The frequency at which storage capacity is checked, in milliseconds. | |
| config: "fuchsia.sys.StorageCheckingFrequency", | |
| key: "storage_checking_frequency", | |
| type: "uint64", | |
| availability: "optional", | |
| default: 5000, | |
| }, | |
| ], | |
| } |