Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

540 B
Raw Blame
// SiYuan - https://github.com/siyuan-note/siyuan
// Copyright (c) 2020-present, b3log.org
// SPDX-License-Identifier: AGPL-3.0-or-later

package cache

const (
	// AdmissionCounters 为约一千个常用键保留十倍频率计数器,不限制缓存条数。
	AdmissionCounters = 10000
	// DefaultMaxCostBytes 是文档、属性和属性视图缓存各自的字节预算。
	DefaultMaxCostBytes = 200 * 1024 * 1024
	// LookupMaxCostBytes 是块查询和虚拟引用缓存各自的字节预算。
	LookupMaxCostBytes = 10 * 1024 * 1024
)