mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 12:28:48 +01:00
🎨 Automatically purge unreferenced data snapshots older than 30 days https://github.com/siyuan-note/siyuan/issues/9613
This commit is contained in:
parent
e408ca69b7
commit
637706decd
2 changed files with 2 additions and 8 deletions
|
|
@ -23,14 +23,11 @@ import (
|
|||
)
|
||||
|
||||
type Repo struct {
|
||||
Key []byte `json:"key"` // AES 密钥
|
||||
HistoryRetentionDays int `json:"historyRetentionDays"` // 历史保留天数
|
||||
Key []byte `json:"key"` // AES 密钥
|
||||
}
|
||||
|
||||
func NewRepo() *Repo {
|
||||
return &Repo{
|
||||
HistoryRetentionDays: 30,
|
||||
}
|
||||
return &Repo{}
|
||||
}
|
||||
|
||||
func (*Repo) GetSaveDir() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue