10e98b08fSopenharmony_ci/* 20e98b08fSopenharmony_ci * Copyright (c) 2020 Huawei Device Co., Ltd. 30e98b08fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 40e98b08fSopenharmony_ci * you may not use this file except in compliance with the License. 50e98b08fSopenharmony_ci * You may obtain a copy of the License at 60e98b08fSopenharmony_ci * 70e98b08fSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 80e98b08fSopenharmony_ci * 90e98b08fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 100e98b08fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 110e98b08fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 120e98b08fSopenharmony_ci * See the License for the specific language governing permissions and 130e98b08fSopenharmony_ci * limitations under the License. 140e98b08fSopenharmony_ci */ 150e98b08fSopenharmony_ci 160e98b08fSopenharmony_ci/** 170e98b08fSopenharmony_ci * @addtogroup utils_config 180e98b08fSopenharmony_ci * @{ 190e98b08fSopenharmony_ci * 200e98b08fSopenharmony_ci * @brief Represents the configuration file of the utils subsystem. 210e98b08fSopenharmony_ci * 220e98b08fSopenharmony_ci * Vendors can set their desired items in the configuration file. 230e98b08fSopenharmony_ci * 240e98b08fSopenharmony_ci * @since 1.0 250e98b08fSopenharmony_ci * @version 1.0 260e98b08fSopenharmony_ci */ 270e98b08fSopenharmony_ci 280e98b08fSopenharmony_ci/** 290e98b08fSopenharmony_ci * @file utils_config.h 300e98b08fSopenharmony_ci * 310e98b08fSopenharmony_ci * @brief Represents the configuration file of the utils subsystem. 320e98b08fSopenharmony_ci * 330e98b08fSopenharmony_ci * Vendors can set their desired items in the configuration file. 340e98b08fSopenharmony_ci * 350e98b08fSopenharmony_ci * @since 1.0 360e98b08fSopenharmony_ci * @version 1.0 370e98b08fSopenharmony_ci */ 380e98b08fSopenharmony_ci 390e98b08fSopenharmony_ci#ifndef UTILS_CONFIG_H 400e98b08fSopenharmony_ci#define UTILS_CONFIG_H 410e98b08fSopenharmony_ci 420e98b08fSopenharmony_ci/** 430e98b08fSopenharmony_ci * @brief Specifies whether the KV store supports cache. 440e98b08fSopenharmony_ci * 450e98b08fSopenharmony_ci * If this variable is defined, the KV store supports cache. 460e98b08fSopenharmony_ci * Vendors determine whether to enable this feature. It is enabled by default. 470e98b08fSopenharmony_ci */ 480e98b08fSopenharmony_ci#define FEATURE_KV_CACHE 490e98b08fSopenharmony_ci 500e98b08fSopenharmony_ci/** 510e98b08fSopenharmony_ci * @brief Indicates the number of data items that can be stored in the KV store cache. 520e98b08fSopenharmony_ci * 530e98b08fSopenharmony_ci * Default value: 10 540e98b08fSopenharmony_ci */ 550e98b08fSopenharmony_ci#define MAX_CACHE_SIZE 10 560e98b08fSopenharmony_ci 570e98b08fSopenharmony_ci/** 580e98b08fSopenharmony_ci * @brief Indicates the number of data items that can be stored for each application. 590e98b08fSopenharmony_ci * 600e98b08fSopenharmony_ci * Default value: 50 610e98b08fSopenharmony_ci */ 620e98b08fSopenharmony_ci#define MAX_KV_SUM 50 630e98b08fSopenharmony_ci 640e98b08fSopenharmony_ci#endif // UTILS_CONFIG_H 650e98b08fSopenharmony_ci/** @} */